- Timestamp:
- Sep 24, 2005, 12:12:58 PM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/graphics_engine.cc
r5240 r5241 177 177 if (iconSurf != NULL) 178 178 { 179 Uint32 colorkey = SDL_MapRGB(iconSurf->format, 255, 0, 255);179 Uint32 colorkey = SDL_MapRGB(iconSurf->format, 0, 0, 0); 180 180 SDL_SetColorKey(iconSurf, SDL_SRCCOLORKEY, colorkey); 181 181 SDL_WM_SetIcon(iconSurf,NULL); -
trunk/src/lib/gui/gui_exec.cc
r5021 r5241 206 206 char* fileName = ResourceManager::homeDirCheck(confFile); 207 207 iniParser.writeFile(fileName); 208 delete fileName;208 delete[] fileName; 209 209 } 210 210 … … 243 243 if(widget->optionType > GUI_NOTHING) 244 244 if (static_cast<Option*>(widget)->isSaveable()) 245 parser->addVar(static_cast<Option*>(widget)->title, static_cast<Option*>(widget)->save()); 245 { 246 char* saveName = static_cast<Option*>(widget)->save(); 247 parser->addVar(static_cast<Option*>(widget)->title, saveName); 248 delete[] saveName; 249 } 246 250 247 251 if(widget->next != NULL) … … 257 261 char* fileName = ResourceManager::homeDirCheck(confFile); 258 262 IniParser iniParser(fileName); 259 delete fileName;263 delete[] fileName; 260 264 if (!iniParser.isOpen()) 261 265 return; -
trunk/src/lib/gui/gui_gtk.cc
r5015 r5241 1594 1594 char* OptionLabel::save() 1595 1595 { 1596 return cValue; 1596 char* retVal = new char[strlen(cValue)+1]; 1597 strcpy(retVal, cValue); 1598 return retVal; 1597 1599 } 1598 1600 -
trunk/src/lib/gui/gui_keys.cc
r5020 r5241 133 133 pKeyWindow->fill(pKeyFrame); 134 134 } 135 delete windowName;135 delete[] windowName; 136 136 Window::addWindow(pKeyWindow); 137 137 #ifdef HAVE_GTK2 -
trunk/src/lib/gui/gui_update.cc
r4944 r5241 117 117 tmpName[strlen(fileName)-strlen(DATA_IDENTIFIER)] = '\0'; 118 118 static_cast<OptionLabel*>(object)->setValue(tmpName); 119 delete tmpName;119 delete[] tmpName; 120 120 return true; 121 121 }
Note: See TracChangeset
for help on using the changeset viewer.