Fix leak: free gdi object (if it wasn’t freed before)
This commit is contained in:
parent
2695d04774
commit
d734bde420
@ -40,6 +40,7 @@
|
||||
#include <freerdp/event.h>
|
||||
#include <freerdp/locale/keyboard.h>
|
||||
#include <freerdp/version.h>
|
||||
#include <freerdp/gdi/gdi.h>
|
||||
|
||||
/* connectErrorCode is 'extern' in error.h. See comment there.*/
|
||||
|
||||
@ -447,6 +448,8 @@ void freerdp_context_free(freerdp* instance)
|
||||
graphics_free(instance->context->graphics);
|
||||
instance->context->graphics = NULL;
|
||||
|
||||
gdi_free(instance);
|
||||
|
||||
PubSub_Free(instance->context->pubSub);
|
||||
|
||||
free(instance->context);
|
||||
|
Loading…
x
Reference in New Issue
Block a user