Changeset 76


Ignore:
Timestamp:
Mar 4, 2008, 6:26:43 PM (10 years ago)
Author:
Sam Hocevar
Message:
  • Fix a crash when Alt-F4 is pressed during the intro screen. Fix courtesy of Fedora maintainer Hans de Goede.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/game.cpp

    r66 r76  
    12811281                        cash.sfx( lnumber_value( logo_snd ) )->play( sfx_volume );
    12821282
    1283                 image blank( 2, 2 );
    1284                 blank.clear();
    1285                 eh->set_mouse_shape( blank.copy(), 0, 0 );      // don't show mouse
     1283                // This must be a dynamic allocated image because if it
     1284                // is not and the window gets closed during do_title, then
     1285                // exit() will try to delete (through the desctructor of
     1286                // image_list in image.cpp) the image on the stack -> boom.
     1287                image *blank = new image( 2, 2 );
     1288                blank->clear();
     1289                eh->set_mouse_shape( blank->copy(), 0, 0 ); // hide mouse
     1290                delete blank;
    12861291                fade_in( cash.img( cdc_logo ), 32 );
    12871292
Note: See TracChangeset for help on using the changeset viewer.