aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
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:40:32 +0900
commitb145c9c75921194441fefa91635d0b330fa43d87 (patch)
treeb95d62057affa56eb720ae7095ee0e82fff5855c /legacy/elementary/src/lib/elm_win.c
parentelm - fix focus set on focus in on window due to previous focus fix (diff)
downloadefl-b145c9c75921194441fefa91635d0b330fa43d87.tar.gz
[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
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index c918b519bc..e6de231bd4 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -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);