Fixed memory leak.
This commit is contained in:
parent
d9b889ddb7
commit
f34ee395eb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user