stefan pushed a commit to branch master.

commit 42e838545a9311795621e7775e06ec1751c9e265
Author: Stefan Schmidt <[email protected]>
Date:   Thu Jun 27 09:43:08 2013 +0100

    edje_entry: Fix memory leak in _edje_entry_imf_event_preedit_changed_cb
    
    info is only local and we are going out of scope after allocating memory
    for it. As we are going out of scope anyway we can safely free it before.
---
 src/lib/edje/edje_entry.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/edje/edje_entry.c b/src/lib/edje/edje_entry.c
index f82cccf..d25329d 100644
--- a/src/lib/edje/edje_entry.c
+++ b/src/lib/edje/edje_entry.c
@@ -4280,6 +4280,7 @@ _edje_entry_imf_event_preedit_changed_cb(void *data, 
Ecore_IMF_Context *ctx EINA
                   en->pw_timer = ecore_timer_add
                     (TO_DOUBLE(_edje_password_show_last_timeout),
                         _password_timer_cb, en);
+                  free(info);
                }
           }
         else

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to