Fixed memory leak.

This commit is contained in:
Armin Novak 2014-11-17 00:34:17 +01:00
parent d9b889ddb7
commit f34ee395eb

View File

@ -407,7 +407,10 @@ rdpShadowEncoder* shadow_encoder_new(rdpShadowClient* client)
encoder->height = server->screen->height;
if (shadow_encoder_init(encoder) < 0)
{
free (encoder);
return NULL;
}
return encoder;
}