Fixed broken resource cleanup.

This commit is contained in:
Armin Novak 2016-03-01 17:30:08 +01:00
parent ce8f3f2539
commit 5bb68a0b39
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ UINT gdi_ResetGraphics(RdpgfxClientContext* context, RDPGFX_RESET_GRAPHICS_PDU*
if (!freerdp_client_codecs_reset(surface->codecs, FREERDP_CODEC_ALL,
surface->width, surface->height))
{
free (surface);
free (pSurfaceIds);
return ERROR_INTERNAL_ERROR;
}