hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=755da93bffc99a0386dac96aa2878b55817cff79

commit 755da93bffc99a0386dac96aa2878b55817cff79
Author: Hermet Park <her...@hermet.pe.kr>
Date:   Sat Aug 27 15:58:12 2016 +0900

    auto_comp: fix memory leak.
---
 src/lib/auto_comp.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/lib/auto_comp.c b/src/lib/auto_comp.c
index f99277b..223e0c7 100644
--- a/src/lib/auto_comp.c
+++ b/src/lib/auto_comp.c
@@ -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;
 

-- 


Reply via email to