Re: [Plib-users] Bug report
Brought to you by:
sjbaker
From: <dva...@cs...> - 2001-04-02 10:24:04
|
On Sun, 1 Apr 2001, Per Liedman wrote: > I don't think it should be deleted. It's just a pointer to a node, and that > node is a part of the model that is loaded, and thus should not be deleted. > But I could be missing some fine details of my own code. Feel free to comment > further if you have any examples of when current_branch causes leaks. > After doing... ssgEntity *loadThis = ssgLoad(tmp); delete loadThis; loadThis = NULL; ...the debugger reports that memory allocated to current_branch hasn't been deallocated, so the leak is somewhere in the loader at least. This is the part of the debug loggin that contains the block that seems to be causing the leak. <snip> Found chunk 4000 of length 54 (known) Object block "default#1" Found chunk 4700 of length 38 (unknown) Found chunk B000 of length 1313 (known) <snip> It's the last Object block (of two) which might explain why the current_branch pointer seems to be responsible for the leak. Maybe it has something to do with there being a dummy object in the model? I can send you my model if you like, it's just ~50kb in size. /Fredde Magic is Life - Technology is Death |