libfreerdp-core: fix bitmap leak (call child destructor from parent destructor in...
authorMarc-André Moreau <marcandre.moreau@gmail.com>
Wed, 26 Oct 2011 03:12:28 +0000 (23:12 -0400)
committerMarc-André Moreau <marcandre.moreau@gmail.com>
Wed, 26 Oct 2011 03:12:28 +0000 (23:12 -0400)
libfreerdp-core/graphics.c

index bf6ef6b..89f2f53 100644 (file)
@@ -49,6 +49,8 @@ void Bitmap_Free(rdpContext* context, rdpBitmap* bitmap)
 {
        if (bitmap != NULL)
        {
+               bitmap->Free(context, bitmap);
+
                if (bitmap->data != NULL)
                        xfree(bitmap->data);