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
This commit is contained in:
Subodh Kumar 2016-01-08 16:17:29 +00:00 committed by Tom Hacohen
parent 55b62bbd70
commit 97b7964e8c
1 changed files with 6 additions and 0 deletions

View File

@ -2678,6 +2678,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);