mirror of https://github.com/FreeRDP/FreeRDP
libfreerdp-core: fix bitmap leak (call child destructor from parent destructor in graphics/bitmap)
This commit is contained in:
parent
35fb332116
commit
12705d36e5
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue