edje_cc: fix dereference before null check

Summary:
Fix Coverity issue which reports a dereference before null check.
The enc_info can not has NULL point
because _edje_multisense_encode api calls exit() in case of failure

Reviewers: Hermet, Jaehyun, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2794

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
jiin.moon 2015-07-28 00:46:05 +02:00 committed by Cedric BAIL
parent 3adb6127ff
commit 29bcec0669
1 changed files with 1 additions and 1 deletions

View File

@ -1152,7 +1152,7 @@ data_thread_sounds(void *data, Ecore_Thread *thread EINA_UNUSED)
#ifdef HAVE_LIBSNDFILE
if ((enc_info->file) && (!enc_info->encoded))
eina_stringshare_del(enc_info->file);
if (enc_info) free(enc_info);
free(enc_info);
enc_info = NULL;
#endif
}