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.
This commit is contained in:
Daniel Juyung Seo 2015-06-26 10:12:25 +09:00
parent a7518cd19d
commit 0891a4d11d
1 changed files with 1 additions and 2 deletions

View File

@ -78,12 +78,11 @@ external_signal(void *data EINA_UNUSED, Evas_Object *obj, const char *sig,
}
content = type->content_get(type->data, obj, _signal);
free(_signal);
if (content)
edje_object_signal_emit(content, sig + (p - _signal), source);
on_error:
if (_signal) free(_signal);
free(_signal);
return;
}