Fixed memory leak.
This commit is contained in:
parent
915a08d592
commit
e4b33efdb2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user