Fixed memory leak.

This commit is contained in:
Armin Novak 2014-11-17 00:33:37 +01:00
parent a594a15220
commit d9b889ddb7
1 changed files with 4 additions and 0 deletions

View File

@ -218,7 +218,11 @@ void shadow_client_refresh_rect(rdpShadowClient* client, BYTE count, RECTANGLE_1
wParam = (SHADOW_MSG_IN_REFRESH_OUTPUT*) calloc(1, sizeof(SHADOW_MSG_IN_REFRESH_OUTPUT));
if (!wParam || !areas)
{
if (wParam)
free (wParam);
return;
}
wParam->numRects = (UINT32) count;