Fix leak: free gdi object (if it wasn’t freed before)

This commit is contained in:
Benoît LeBlanc 2013-11-22 13:37:28 -05:00
parent 2695d04774
commit d734bde420

View File

@ -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);