*Some more memory clear before gamestart

This commit is contained in:
dimok321 2009-05-31 22:44:40 +00:00
parent 1ffee5a484
commit 550b792db9
3 changed files with 11 additions and 4 deletions

View File

@ -179,9 +179,10 @@ GuiGameBrowser::~GuiGameBrowser()
delete bgGamesEntry;
delete trigA;
delete trigHeldA;
delete btnSoundClick;
delete btnSoundOver;
// delete optionBg;
for(int i=0; i<pagesize; i++)
{
delete gameTxt[i];

View File

@ -159,7 +159,13 @@ GuiGameCarousel::~GuiGameCarousel()
delete btnLeft;
delete trigA;
delete trigHeldA;
delete trigL;
delete trigR;
delete trigPlus;
delete trigMinus;
delete btnSoundClick;
delete btnSoundOver;
for(int i=0; i<pagesize; i++) {
delete game[i];

View File

@ -31,7 +31,6 @@ class GuiGameGrid : public GuiElement
int * gameIndex;
GuiButton ** game;
GuiText ** gameTxt;
GuiImage ** coverImg;
GuiImageData ** cover;
@ -47,6 +46,7 @@ class GuiGameGrid : public GuiElement
GuiSound * btnSoundOver;
GuiSound * btnSoundClick;
GuiTrigger * trigA;
GuiTrigger * trigL;
GuiTrigger * trigR;