summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubhransu Mohanty <smohantty@gmail.com>2020-06-08 20:28:14 +0900
committerStefan Schmidt <s.schmidt@samsung.com>2020-06-15 15:42:09 +0200
commit69bf3cd31f6006aa6e2d430718604ed04de551c7 (patch)
tree62a95bb116bb7fe67c4ba3610046dc290aec2f82
parentebbc6a3c2de2218092a78b9b1ead82750fbedb18 (diff)
downloadefl-69bf3cd31f6006aa6e2d430718604ed04de551c7.tar.gz
elementary/example: Fix memory leak in gengrid test
Reviewers: Hermet, SanghyeonLee Reviewed By: Hermet, SanghyeonLee Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11928
-rw-r--r--src/bin/elementary/test_gengrid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/elementary/test_gengrid.c b/src/bin/elementary/test_gengrid.c
index e2009e0db6..83f2dd9262 100644
--- a/src/bin/elementary/test_gengrid.c
+++ b/src/bin/elementary/test_gengrid.c
@@ -2160,6 +2160,7 @@ test_gengrid_update(void *data EINA_UNUSED,
win = elm_win_util_standard_add("gengrid-update", "Gengrid Update");
elm_win_autodel_set(win, EINA_TRUE);
+ evas_object_event_callback_add(win, EVAS_CALLBACK_FREE, _cleanup_cb, api);
api->box = bx = elm_box_add(win);
evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);