summaryrefslogtreecommitdiff
path: root/src/edje_externals
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2015-06-26 10:12:25 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2015-06-26 10:17:33 +0900
commit496d7c9b4be883e668a27dc32306449ba8f1771c (patch)
tree4e316bc0a2902f0cce406f633281ce6cdef6612a /src/edje_externals
parentef5a4717f5a316f861aada9ae7cd0f5a83018cc9 (diff)
edje_externals: Fix wrong free.
_signal is used after free. _signal will be freed soon any way. This was introduced in 3da3082. This fixes coverity CID 1308263.
Diffstat (limited to 'src/edje_externals')
-rw-r--r--src/edje_externals/elm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/edje_externals/elm.c b/src/edje_externals/elm.c
index 8ce77ac5a..d85165d3f 100644
--- a/src/edje_externals/elm.c
+++ b/src/edje_externals/elm.c
@@ -78,12 +78,11 @@ external_signal(void *data EINA_UNUSED, Evas_Object *obj, const char *sig,
78 } 78 }
79 79
80 content = type->content_get(type->data, obj, _signal); 80 content = type->content_get(type->data, obj, _signal);
81 free(_signal);
82 if (content) 81 if (content)
83 edje_object_signal_emit(content, sig + (p - _signal), source); 82 edje_object_signal_emit(content, sig + (p - _signal), source);
84 83
85on_error: 84on_error:
86 if (_signal) free(_signal); 85 free(_signal);
87 return; 86 return;
88} 87}
89 88