Closed AlainBridel closed 11 years ago
@AlainBridel Fixed. Needs more work, as stated in issue #112, but memory leaks are fixed. Thanks again for your feedback and please review this change.
I have seen a lot of work regarding memory, but I think this should also be updated :
In IND_FontManager Line 124 // Free the image _imageManager->remove(mNewImage);
return 1;
Should be changed to // Free the image _imageManager->remove(mNewImage);
---> DISPOSE(mNewImage);
return 1;
In IND_SurfaceManager Line 168, 240, 276, 351 same applies.
A temporary image is instanciated to work with it, removed from the image manager but not deleted.
Yes I missed that one. Thanks
In IND_FontManager (add, method) and IND_SurfaceManager (add methods) the new IND_Image() allocated are not free but just "remove" from the imagemanager those resulting in memory leaks.