From 80063034c1e5e99cc5748f8c50cccb4f47892934 Mon Sep 17 00:00:00 2001 From: Stephen okra Houston Date: Fri, 19 Aug 2016 09:36:56 -0500 Subject: [PATCH] Ephoto: Remove warnings and potential crash by unsetting the fileselector from the popup before deleting. --- src/bin/ephoto_file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/ephoto_file.c b/src/bin/ephoto_file.c index bb5d12a..e80445e 100644 --- a/src/bin/ephoto_file.c +++ b/src/bin/ephoto_file.c @@ -1029,7 +1029,7 @@ _prompt_save_image_apply(void *data, Evas_Object *obj EINA_UNUSED, } static void -_prompt_save_image_as_apply(void *data, Evas_Object *obj EINA_UNUSED, void *event_info) +_prompt_save_image_as_apply(void *data, Evas_Object *obj, void *event_info) { const char *selected = event_info; Evas_Object *opopup = data; @@ -1121,6 +1121,8 @@ _prompt_save_image_as_apply(void *data, Evas_Object *obj EINA_UNUSED, void *even } } } + elm_object_content_unset(opopup); + evas_object_del(obj); evas_object_del(opopup); elm_object_focus_set(ephoto->pager, EINA_TRUE); }