Hello,
I think that I found a memory leak in the lib3ds library.
I am using VC 6.0.

lib3ds_file_free(Lib3dsFile* file) function calls:
lib3ds_viewport_set_views(&file->viewport,0);
only on the file->viewport, but
viewport can be also allocated for the
file->viewport_keyf during file load with function:
lib3ds_viewport_set_views ( function used also for the file->viewport).

So I just added in the lib3ds_file_free function additional line:
lib3ds_viewport_set_views(&file->viewport_keyf,0);.
to avoid memory leak.

Tomas Rapkauskas

P.S.
I can send  3ds file for the tests to be sure that memory leak appears.








-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
lib3ds-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lib3ds-devel

Reply via email to