forked from 0ad/0ad
Fix memory leak
This was SVN commit r8302.
This commit is contained in:
parent
ff983a7114
commit
0436dc4cb9
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user