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:
9753b63
)
Fixed memory leak.
author
Armin Novak
<armin.novak@gmail.com>
Sun, 16 Nov 2014 23:55:25 +0000
(
00:55
+0100)
committer
Armin Novak
<armin.novak@gmail.com>
Sun, 16 Nov 2014 23:55:25 +0000
(
00:55
+0100)
rdtk/librdtk/rdtk_surface.c
patch
|
blob
|
history
diff --git
a/rdtk/librdtk/rdtk_surface.c
b/rdtk/librdtk/rdtk_surface.c
index
2c02f8e
..
03e64e9
100644
(file)
--- a/
rdtk/librdtk/rdtk_surface.c
+++ b/
rdtk/librdtk/rdtk_surface.c
@@
-59,7
+59,10
@@
rdtkSurface* rdtk_surface_new(rdtkEngine* engine, BYTE* data, int width, int hei
surface->data = (BYTE*) malloc(surface->scanline * surface->height);
if (!surface->data)
+ {
+ free(surface);
return NULL;
+ }
ZeroMemory(surface->data, surface->scanline * surface->height);