Hello jeff, Friday, December 24, 2004, 4:22:46 AM, you wrote: jb> Did you notice this line?... jb> pDstImage = new unsigned jb> char[ImageLoader::GetMemRequired(blah, blah, blah);
jb> ...that memory never gets freed. I guess that's why the comment at jb> the bottom says... jb> // leak leak leak leak leak, leak leak, leak leak (Blue Danube) jb> :) Yeah, I tried but the problem wasn't here it was in two pairs of such lines (I've changed pDspImage to VtfData, so don't be surprised!) : unsigned char *tmpImage = VtfData; VtfData = new unsigned char[ImageLoader::GetMemRequired( iWidth, iHeight, IMAGE_FORMAT_RGB888, false )]; I've just added this line in the end of these two blocks (just before dstFormat = IMAGE_FORMAT_RGB888; ) - delete [] tmpImage; Now it works great :) Still thanks ;) I guess problem was in VtfData (pDstImage) being allocated for 2 times. -- Best regards, Vyacheslav mailto:[EMAIL PROTECTED] _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

