projects
/
platform
/
core
/
uifw
/
libtbm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0269f84
)
tbm_module: free bo when it is not from hal_surface.
19/260119/2
author
SooChan Lim
<sc1.lim@samsung.com>
Mon, 21 Jun 2021 01:28:45 +0000
(10:28 +0900)
committer
SooChan Lim
<sc1.lim@samsung.com>
Mon, 21 Jun 2021 01:32:04 +0000
(
01:32
+0000)
This patch fix the memory leak.
Change-Id: I60dc2669aadeffdfa286a06108f448f450b43f56
src/tbm_module.c
patch
|
blob
|
history
diff --git
a/src/tbm_module.c
b/src/tbm_module.c
index
9be2702
..
f59d4c1
100644
(file)
--- a/
src/tbm_module.c
+++ b/
src/tbm_module.c
@@
-826,7
+826,7
@@
tbm_module_bo_free(tbm_module *module, tbm_bo bo, tbm_backend_bo_data *bo_data,
switch (module->type) {
case TBM_MODULE_TYPE_HAL_TBM:
// call hal_tbm_bo_free when bo is created by tbm_bo_alloc api.
- if (get_from_hal_surface)
+ if (
!
get_from_hal_surface)
hal_tbm_bo_free(bo_data);
break;
/* LCOV_EXCL_START */