loadPNG/libpng memory leaks, skin request

Alles rund um das grafische Benutzerinterface Enigma
PentVaer
Neugieriger
Neugieriger
Beiträge: 14
Registriert: Montag 8. März 2004, 08:50

loadPNG/libpng memory leaks, skin request

Beitrag von PentVaer »

I notice there have been modifications to loadPNG and gPixMap recently to fix memory leaks, I think there are some still some remaining, or there
are leaks in libpng. Loading an image (and deleting it) 3000 times (or 3 * 1000 times :-)) always results in a crash (on the dreambox). This
is for an image which loads and displays without error, and is verified
by another programmer.

This is a big problem for my plugin. To get round it, I've started using
the active skin to load the images:

if ( eSkin()::getActive()->load( filename ) != -1 )
eSkin()::getActive()->parseSkins();

This isn't very efficient, it reparses all existing skin elements again I
believe. Could one of the enigma devs maybe either:

- add a public function

int addElements( const char * filename );

which only incorporates the extra elements in filename into the
skin

- or maybe make this function public ?

int eSkin::parseImages(XMLTreeNode *inode)

Or offer another idea ?

Thanks,

PentVaer