mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Fixed memory leak.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user