Welcome! Log In Create A New Profile


GRRlib problem

Posted by WiiPhlex 
GRRlib problem
August 27, 2008 12:27PM
Not sure how many people have looked over the source of the GRRlib lib, but it has some massive memory leaks. If someone wants to fix them have fun, just thought I'd let you know (use Libwiisprite).
Re: GRRlib problem
August 27, 2008 05:38PM
That's why I also use libwiisprite (plus libwiisprite is c++).
Re: GRRlib problem
August 27, 2008 05:49PM
Where are these massive leaks? or how did you detemine the library is leaking memory?

The 3.01a code looks OK to me. I can see a potential user memory leak, if the user doesn't free() the memory allocated by GRRLIB_LoadTexture(), but that's not a leak as this function hands you back a pointer to the memory.

I didn't look into the PNG* functions being called.

>(use Libwiisprite)

That's a C++ library. I'm not sure how I would use that library in my C code without switching to a C++ environment.
Re: GRRlib problem
August 27, 2008 07:10PM
Check the function GRRLIB_Stop() on this page:


It may help with freeing everything!
Sorry, only registered users may post in this forum.

Click here to login