1
0
forked from 0ad/0ad

Fix memory leak

This was SVN commit r8302.
This commit is contained in:
Ykkrosh 2010-10-07 18:42:35 +00:00
parent ff983a7114
commit 0436dc4cb9

View File

@ -298,7 +298,10 @@ void WriteBigScreenshot(const std::wstring& extension, int tiles)
Tex t;
GLvoid* img = img_buf.get() + hdr_size;
if(tex_wrap(img_w, img_h, bpp, flags, img_buf, hdr_size, &t) < 0)
{
free(tile_data);
return;
}
ogl_WarnIfError();