- fixed a few memory leaks
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-03-29 10:33:42 +00:00
parent 2f66c4953f
commit 3994006d7e
12 changed files with 64 additions and 33 deletions
+1
View File
@@ -24,6 +24,7 @@ class ActionLayer: public GuiLayer, public JGuiListener{
int unstopableRenderInProgress();
bool CheckUserInput(u32 key);
ActionLayer(int id, GameObserver* _game):GuiLayer(id, _game){ menuObject = NULL; abilitiesMenu = NULL;};
~ActionLayer();
int isWaitingForAnswer();
int isReactingToTargetClick(Targetable * card);
int receiveEvent(WEvent * event);
+2
View File
@@ -33,6 +33,7 @@ class SimpleMenu:public JGuiController{
static unsigned int refCount;
static JQuad *spadeR, *spadeL, *jewel, *side;
static JTexture *spadeRTex, *spadeLTex, *jewelTex, *sideTex;
static JLBFont* titleFont;
static hgeParticleSystem* stars;
// This works only because of no multithreading
@@ -51,6 +52,7 @@ class SimpleMenu:public JGuiController{
float selectionTargetY;
bool closed;
static void destroy();
};
+1
View File
@@ -76,6 +76,7 @@ protected:
~SampleCache();
public:
static SampleCache * GetInstance();
static void DestroyInstance();
SampleCache(){lastTime = 0;};
JSample * getSample(string filename);