projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cccd48
)
cache: Use Bitmap_Free instead of free
author
Ondrej Holy
<oholy@redhat.com>
Tue, 5 Sep 2017 08:25:15 +0000
(10:25 +0200)
committer
Ondrej Holy
<oholy@redhat.com>
Thu, 7 Sep 2017 07:38:44 +0000
(09:38 +0200)
Bitmap_Alloc is used to allocate memory of bitmap, Bitmap_Free should
be used to release that memory. Let's change free to Bitmap_Free.
https://github.com/FreeRDP/FreeRDP/issues/4117
libfreerdp/cache/offscreen.c
patch
|
blob
|
history
diff --git
a/libfreerdp/cache/offscreen.c
b/libfreerdp/cache/offscreen.c
index
93fb08e
..
a07012d
100644
(file)
--- a/
libfreerdp/cache/offscreen.c
+++ b/
libfreerdp/cache/offscreen.c
@@
-60,7
+60,7
@@
static BOOL update_gdi_create_offscreen_bitmap(rdpContext* context,
if (!bitmap->New(context, bitmap))
{
-
free(
bitmap);
+
Bitmap_Free(context,
bitmap);
return FALSE;
}