[elm_win] Possible memory leak Fixed.

Summary: Memory assigned to variable "sd->wm_rot.rots" is not freed on window deletion.

Test Plan: Valgrind catch this memory leak.

Reviewers: raster, cedric, Hermet

Reviewed By: Hermet

Subscribers: govi, rajeshps

Differential Revision: https://phab.enlightenment.org/D3041
This commit is contained in:
Prince Kumar Dubey 2015-09-23 09:40:31 +09:00 committed by ChunEon Park
parent 97ead86a39
commit b145c9c759
1 changed files with 2 additions and 0 deletions

View File

@ -1941,6 +1941,8 @@ _elm_win_evas_object_smart_del(Eo *obj, Elm_Win_Data *sd)
_elm_win_profile_del(sd);
_elm_win_available_profiles_del(sd);
free(sd->wm_rot.rots);
/* Don't let callback in the air that point to sd */
ecore_evas_callback_delete_request_set(sd->ee, NULL);
ecore_evas_callback_resize_set(sd->ee, NULL);