On Fri, 24 Dec 2004 00:26:55 +0200, Vyacheslav Djura
<[EMAIL PROTECTED]> wrote:
> I am trying to improve vtf2tga, so it can convert several textures in
> a row, but I've noticed that program's RAM usage doesn't decrease
> after one texture has been converted. I mean when I convert 3 textures
> in a row all of 512x512 size, such thing happen to memory usage:
> before conversion - ~3mb
> 1 image converted - ~4.5mb
> 2 images converted - ~5.5mb
> etc.
> What should I do to clean the memory?

Did you notice this line?...

pDstImage = new unsigned char[ImageLoader::GetMemRequired(blah, blah, blah);

...that memory never gets freed.  I guess that's why the comment at
the bottom says...

// leak leak leak leak leak, leak leak, leak leak (Blue Danube)

:)

Jeffrey "botman" Broome

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to