Fixed memory leak.

This commit is contained in:
Armin Novak 2014-11-17 00:56:56 +01:00
parent 915a08d592
commit e4b33efdb2

View File

@ -269,7 +269,10 @@ PROGRESSIVE_SURFACE_CONTEXT* progressive_surface_context_new(UINT16 surfaceId, U
surface->tiles = (RFX_PROGRESSIVE_TILE*) calloc(surface->gridSize, sizeof(RFX_PROGRESSIVE_TILE));
if (!surface->tiles)
{
free (surface);
return NULL;
}
return surface;
}