Re: [Plib-users] Bug report
Brought to you by:
sjbaker
From: Per L. <li...@ho...> - 2001-04-02 17:36:49
|
On Monday 02 April 2001 12:23, Fredrik Sandstr=F6m wrote: > On Sun, 1 Apr 2001, Per Liedman wrote: > > I don't think it should be deleted. It's just a pointer to a node, an= d > > 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. Fee= l > > free to comment further if you have any examples of when current_bran= ch > > causes leaks. > > After doing... > > ssgEntity *loadThis =3D ssgLoad(tmp); > delete loadThis; > loadThis =3D 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 mod= el? > > I can send you my model if you like, it's just ~50kb in size. Yes, please do. I'll try to take a look at it. --=20 / Per Liedman / li...@ho... / www.mdstud.chalmers.se/~md6pl / 031-825659 / 0705-520455 |