pfuMakeTexList and memory usage

New Message Reply Date view Thread view Subject view Author view

Scott Herod (herod++at++aspen.evt.com)
Thu, 29 Apr 1999 15:08:31 -0600


I'm getting a 352 byte memory leak when I use pfuMakeTexList.
Am I deleting the list correctly with:

#if 1
    pfList *tex_list = pfuMakeTexList( dcs );
    printf( "Size of tex_list = %d\n", tex_list->getNum() );
    tex_list->reset();
    tex_list->checkDelete();
#endif

Also, with performer 2.2.4, is the source for pfuMakeTexList()
in libpfutil/tex.c? I notice that the version defined there
allocates two pfLists, one on line 336

 list = pfNewList(sizeof(pfTexture*), 64, pfGetSharedArena());

and a second on line 343

 nlist = pfNewList(sizeof(pfTexture*), num_tex, pfGetSharedArena());

nlist is returned by the routine but list is never cleaned up.

Thank you
Scott Herod
scott++at++evt.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Thu Apr 29 1999 - 15:43:11 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.