Changeset 9:b6d6c0ffb423

Show
Ignore:
Timestamp:
08/05/08 15:24:20 (4 years ago)
Author:
thib
Branch:
default
convert_revision:
svn:d0a2da98-017c-47d2-8c43-22b54484806d/trunk@10
Message:
Fixed some memory leaks
Location:
system
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • system/file.cc

    r7 r9  
    592592        } else { 
    593593                dat_dir = new DIRFILE(dat_path); 
     594                delete[] dat_path; 
    594595                dat_dir->Init(); 
    595596        } 
  • system/system_config.cc

    r0 r9  
    789789        SetOrigParam("#SCREENSIZE_MOD", 1, 0); /* 0 = 640x480; 1 = 800x600 */ 
    790790} 
     791AyuSysConfig::~AyuSysConfig(void) { 
     792        delete str_config; 
     793        delete int_config; 
     794} 
    791795 
    792796static int SplitVar(const char* str, int* ret_var, int ret_size) { 
  • system/system_config.h

    r0 r9  
    4343public: 
    4444        AyuSysConfig(void); 
     45        ~AyuSysConfig(); 
    4546        bool LoadInitFile(void); 
    4647        /* ¥Ñ¥é¥á¡Œ¥¿€òž¡º÷€¹€ë */