summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrince Kumar Dubey <prince.dubey@samsung.com>2015-09-23 09:40:31 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-09-23 09:42:17 +0900
commitf281b3f1f748bd854a732e399668e5a8739f20b2 (patch)
treeb2d72a0e7d1b34cf8933325869f78d6956789920
parentb5f416069cb3a260e936f764768b334150726c22 (diff)
[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
-rw-r--r--src/lib/elm_win.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c
index 6e478f615..53c2ce9bb 100644
--- a/src/lib/elm_win.c
+++ b/src/lib/elm_win.c
@@ -1921,6 +1921,8 @@ _elm_win_evas_object_smart_del(Eo *obj, Elm_Win_Data *sd)
1921 _elm_win_profile_del(sd); 1921 _elm_win_profile_del(sd);
1922 _elm_win_available_profiles_del(sd); 1922 _elm_win_available_profiles_del(sd);
1923 1923
1924 free(sd->wm_rot.rots);
1925
1924 /* Don't let callback in the air that point to sd */ 1926 /* Don't let callback in the air that point to sd */
1925 ecore_evas_callback_delete_request_set(sd->ee, NULL); 1927 ecore_evas_callback_delete_request_set(sd->ee, NULL);
1926 ecore_evas_callback_resize_set(sd->ee, NULL); 1928 ecore_evas_callback_resize_set(sd->ee, NULL);