projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7aa5d3
)
e_comp_wl_data: free source before error return
72/114572/2
author
Junkyeong Kim
<jk0430.kim@samsung.com>
Tue, 14 Feb 2017 05:38:34 +0000
(14:38 +0900)
committer
Juyeon Lee
<juyeonne.lee@samsung.com>
Wed, 15 Feb 2017 10:08:18 +0000
(
02:08
-0800)
Change-Id: I9cca086d9360b588febef9a1a0687c2df828e708
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
src/bin/e_comp_wl_data.c
patch
|
blob
|
history
diff --git
a/src/bin/e_comp_wl_data.c
b/src/bin/e_comp_wl_data.c
index
aa8892c
..
729a149
100644
(file)
--- a/
src/bin/e_comp_wl_data.c
+++ b/
src/bin/e_comp_wl_data.c
@@
-855,7
+855,11
@@
e_comp_wl_clipboard_source_create(const char *mime_type, uint32_t serial, int *f
if (!source->data_source.mime_types)
source->data_source.mime_types = eina_array_new(1);
- EINA_SAFETY_ON_NULL_RETURN_VAL(source->data_source.mime_types, NULL);
+ if (source->data_source.mime_types == NULL)
+ {
+ E_FREE(source);
+ return NULL;
+ }
eina_array_push(source->data_source.mime_types, eina_stringshare_add(mime_type));
}