Fixed memory leak.
This commit is contained in:
parent
4292631ff9
commit
a0d6a1f77f
@ -717,7 +717,10 @@ UINT gdi_CreateSurface(RdpgfxClientContext* context, RDPGFX_CREATE_SURFACE_PDU*
|
||||
surface->codecs = codecs_new(gdi->context);
|
||||
|
||||
if (!surface->codecs)
|
||||
{
|
||||
free (surface);
|
||||
return CHANNEL_RC_NO_MEMORY;
|
||||
}
|
||||
|
||||
surface->surfaceId = createSurface->surfaceId;
|
||||
surface->width = (UINT32) createSurface->width;
|
||||
|
Loading…
Reference in New Issue
Block a user