Fixed memory leaks.

This commit is contained in:
Armin Novak 2014-11-16 23:26:56 +01:00
parent 3a92a626fc
commit 99a26263c7

View File

@ -119,7 +119,13 @@ int rdpgfx_decode_h264(RDPGFX_PLUGIN* gfx, RDPGFX_SURFACE_COMMAND* cmd)
status = rdpgfx_read_h264_metablock(gfx, s, &(h264.meta));
if (status < 0)
{
if (h264.meta.regionRects)
free(h264.meta.regionRects);
if (h264.meta.quantQualityVals)
free(h264.meta.quantQualityVals);
return -1;
}
h264.data = Stream_Pointer(s);
h264.length = (UINT32) Stream_GetRemainingLength(s);