auto_comp: fix memory leak.

This commit is contained in:
Hermet Park 2016-08-27 15:58:12 +09:00
parent c9ac1d8f50
commit 755da93bff
1 changed files with 6 additions and 1 deletions

View File

@ -328,7 +328,12 @@ context_lexem_thread_end_cb(void *data, Ecore_Thread *thread EINA_UNUSED)
{
ctx_lexem_td *td = (ctx_lexem_td *)data;
if (!td->ad || (td->ad->cltd != td)) return;
if (!td->ad || (td->ad->cltd != td))
{
free(td->utf8);
free(td);
return;
}
td->ad->lexem_ptr = td->result;