tasn pushed a commit to branch efl-1.16.

http://git.enlightenment.org/core/efl.git/commit/?id=06749ec24a7207ac59748f3394a593a9dacd05ca

commit 06749ec24a7207ac59748f3394a593a9dacd05ca
Author: Subodh Kumar <s7158.ku...@samsung.com>
Date:   Fri Jan 8 16:17:29 2016 +0000

    Edje entry: Fix memory leak.
    
    Summary:
    Fix memory leak
    
    If user or extra cursor is used, these should be free on
    shutdown.
    
    @fix
    
    Test Plan: NA
    
    Reviewers: tasn, herdsman
    
    Subscribers: shilpasingh, cedric, jpeg
    
    Projects: #efl
    
    Differential Revision: https://phab.enlightenment.org/D3550
---
 src/lib/edje/edje_entry.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/lib/edje/edje_entry.c b/src/lib/edje/edje_entry.c
index b6cbf84..7a45cb2 100644
--- a/src/lib/edje/edje_entry.c
+++ b/src/lib/edje/edje_entry.c
@@ -2700,6 +2700,12 @@ _edje_entry_real_part_shutdown(Edje *ed, Edje_Real_Part 
*rp)
    evas_object_del(en->cursor_fg);
    evas_object_del(en->cursor_fg2);
 
+   if (en->cursor_user)
+     evas_textblock_cursor_free(en->cursor_user);
+
+   if (en->cursor_user_extra)
+     evas_textblock_cursor_free(en->cursor_user_extra);
+
    if (en->pw_timer)
      {
         ecore_timer_del(en->pw_timer);

-- 


Reply via email to