libfreerdp-core: fix bitmap leak (call child destructor from parent destructor in graphics/bitmap)

This commit is contained in:
Marc-André Moreau 2011-10-25 23:12:28 -04:00
parent 35fb332116
commit 12705d36e5
1 changed files with 2 additions and 0 deletions

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