projects
/
platform
/
core
/
uifw
/
libtpl-egl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff15ea6
)
tpl_wayland_egl_thread: Fixed potential memory leak problem.
61/139561/1
author
joonbum.ko
<joonbum.ko@samsung.com>
Wed, 19 Jul 2017 07:28:50 +0000
(16:28 +0900)
committer
joonbum.ko
<joonbum.ko@samsung.com>
Wed, 19 Jul 2017 07:28:50 +0000
(16:28 +0900)
Change-Id: I277770bcc41ef6bbffcd8be705f09a944dec97bd
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
src/tpl_wayland_egl_thread.c
patch
|
blob
|
history
diff --git
a/src/tpl_wayland_egl_thread.c
b/src/tpl_wayland_egl_thread.c
index
dd9ee0b
..
b0f2312
100644
(file)
--- a/
src/tpl_wayland_egl_thread.c
+++ b/
src/tpl_wayland_egl_thread.c
@@
-775,6
+775,12
@@
__cb_twe_buffer_free_callback(twe_wl_buffer_info *buf_info)
wayland_tbm_client_destroy_buffer(disp_source->wl_tbm_client,
(void *)buf_info->wl_buffer);
+ if (buf_info->rects) {
+ free(buf_info->rects);
+ buf_info->rects = NULL;
+ buf_info->num_rects = 0;
+ }
+
free(buf_info);
}