projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cd1726
)
ecore_wl2_dnd: fix memory leak of wl_data_source
87/296287/1
author
Junseok Kim
<juns.kim@samsung.com>
Tue, 25 Jul 2023 02:08:43 +0000
(11:08 +0900)
committer
Junseok Kim
<juns.kim@samsung.com>
Tue, 25 Jul 2023 02:10:20 +0000
(11:10 +0900)
destroy wl_data_source before create new one
@tizen_only
Change-Id: I84cc4ce58e2208025355df93b6491c8c003808dd
src/lib/ecore_wl2/ecore_wl2_dnd.c
patch
|
blob
|
history
diff --git
a/src/lib/ecore_wl2/ecore_wl2_dnd.c
b/src/lib/ecore_wl2/ecore_wl2_dnd.c
index
f0e41e1
..
4292798
100644
(file)
--- a/
src/lib/ecore_wl2/ecore_wl2_dnd.c
+++ b/
src/lib/ecore_wl2/ecore_wl2_dnd.c
@@
-630,6
+630,10
@@
ecore_wl2_dnd_selection_set(Ecore_Wl2_Input *input, const char **types)
wl_array_init(&input->data.selection.types);
}
+ //TIZEN_ONLY(20230725): fix memory leak
+ if (input->data.selection.source)
+ wl_data_source_destroy(input->data.selection.source);
+ //
input->data.selection.source = NULL;
if (!types[0]) return 0;