Merge pull request #188 from atong-tcs/master

fix bitmap leak
This commit is contained in:
Marc-André Moreau 2011-10-26 10:23:27 -07:00
commit ea845af2bb
1 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,9 @@ void xf_Bitmap_New(rdpContext* context, rdpBitmap* bitmap)
}
else
{
if (data != bitmap->data)
xfree(bitmap->data);
bitmap->data = data;
}
}