Memory Leak in ts\tsshapeinstance.cc: 1131
by Duncan Gray · in Torque Game Engine · 01/25/2006 (10:09 pm) · 1 replies
In TSShapeInstance::SetUpFog
At line 1130
The only place where that smRenderData.fogHandle gets deleted is in:
I loaded a mission then put a breakpoint on the delete spot, then exited the mission back to the main menu, but the breakpoint never gets triggered until you exit the entire game, not the mission.
I tried moving it to the TSShapeInstance destructor but then you get errors in void TextureHandle::unlock()
At line 1130
if (!smRenderData.fogHandle)
[b]smRenderData.fogHandle = new TextureHandle("fog_texture", smRenderData.fogBitmap);[/b]
else
if (refresh)
smRenderData.fogHandle->refresh();The only place where that smRenderData.fogHandle gets deleted is in:
void TSShapeInstance::destroy()
{
delete smRenderData.fogHandle;
}I loaded a mission then put a breakpoint on the delete spot, then exited the mission back to the main menu, but the breakpoint never gets triggered until you exit the entire game, not the mission.
I tried moving it to the TSShapeInstance destructor but then you get errors in void TextureHandle::unlock()
About the author
Torque Owner Brian Richardson
Hope that helps!
Brian "bzztbomb" Richardson -- [url="http://knowhere.net/"]Knowhere Studios[/url]