Changeset 121


Ignore:
Timestamp:
Mar 17, 2008, 9:41:31 PM (10 years ago)
Author:
Sam Hocevar
Message:
  • Fix a few potential crashes due to NULL object deletion.
File:
1 edited

Legend:

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

    r120 r121  
    27482748    }
    27492749
    2750     delete g;
     2750    if(g)
     2751    {
     2752        delete g;
     2753        g = NULL;
     2754    }
     2755
    27512756    if(old_pal) delete old_pal; old_pal = NULL;
    27522757    compiled_uninit();
     
    27582763
    27592764    dev_cleanup();
    2760     delete dev_cont; dev_cont = NULL;
     2765    if(dev_cont)
     2766    {
     2767        delete dev_cont;
     2768        dev_cont = NULL;
     2769    }
    27612770    delete stat_man;
    27622771    stat_man = new text_status_manager();
Note: See TracChangeset for help on using the changeset viewer.