rnodal
01-01-2007 19:31:19
Hello all:
I tried searching for the answer in the forums but I did not find it. So I had to make a post about it.
I'm getting two leaks in my code and I can't figure what's the matter. Here is the leaks report.
In my ClientGame::InitGame I have:
And in my ClientGame::~ClientGame I have:
Any clues what's wrong. Am I forgetting to delete something?
Thanks for your time.
-r
I tried searching for the answer in the forums but I did not find it. So I had to make a post about it.
I'm getting two leaks in my code and I can't figure what's the matter. Here is the leaks report.
2 memory leaks found:
Alloc. Addr Size Addr Size BreakOn BreakOn
Number Reported Reported Actual Actual Unused Method Dealloc Realloc Allocated by
------ ---------- ---------- ---------- ---------- ---------- -------- ------- ------- ---------------------------------------------------
000865 0x00C9F4F0 0x00000014 0x00C9F4E0 0x00000034 0x00000000 new N N clientgame.cpp(143) ClientGame::InitGame
000866 0x00C9F550 0x00000008 0x00C9F540 0x00000028 0x00000000 new N N ogrenewt_world.cpp(23) OgreNewt::World::World
In my ClientGame::InitGame I have:
this->mWorld = new OgreNewt::World();
And in my ClientGame::~ClientGame I have:
delete mWorld;
mWorld = 0;
Any clues what's wrong. Am I forgetting to delete something?
Thanks for your time.
-r