Changeset 93


Ignore:
Timestamp:
Mar 7, 2008, 8:31:51 PM (10 years ago)
Author:
Sam Hocevar
Message:
  • Set key_map to NULL after freeing it to avoid a crash in get_key_bindings().
File:
1 edited

Legend:

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

    r88 r93  
    3030};
    3131
    32 player_keys *key_map = NULL;
     32static player_keys *key_map = NULL;
    3333
    3434static int binding_for_player( int player )
     
    222222void config_cleanup()
    223223{
    224         if( key_map )
    225         {
    226                 jfree( key_map );
    227         }
     224    if(key_map)
     225    {
     226        jfree(key_map);
     227        key_map = NULL;
     228    }
    228229}
    229230
Note: See TracChangeset for help on using the changeset viewer.