xfreerdp: fix bitmap buffer leak
This commit is contained in:
parent
76a943d577
commit
3dc8e8a82f
@ -58,6 +58,9 @@ void xf_Bitmap_New(rdpContext* context, rdpBitmap* bitmap)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (data != bitmap->data)
|
||||
xfree(bitmap->data);
|
||||
|
||||
bitmap->data = data;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user