aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-03-28 14:09:54 -0700
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-04-02 15:07:07 +0200
commit5f9e1cc64c11e0f379033eefe71f7b50330d3013 (patch)
tree433cdbabca7d6046f4c148444fd0c8393dbee053
parentelementary: it seems I forgot to initialize some meaningful boolean. (diff)
downloadefl-devs/bu5hm4n/fileselector-suite.tar.gz
elementary: fix error path during shutdown of fileselector.devs/bu5hm4n/fileselector-suite
During shutdown, sometimes, we can have an error generated on the object while it is invalidating, but before it is invalidated. This lead to properties on the object to change to an error state and trigger the properties changed logic. At this point, the parent has already been destroyed and we don't really have anything more to do. So let's not do anything. Differential Revision: https://phab.enlightenment.org/D8502
-rw-r--r--src/lib/elementary/elc_fileselector.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/elementary/elc_fileselector.c b/src/lib/elementary/elc_fileselector.c
index 2a2b7ab9a1..783358e522 100644
--- a/src/lib/elementary/elc_fileselector.c
+++ b/src/lib/elementary/elc_fileselector.c
@@ -823,6 +823,10 @@ _process_model(Elm_Fileselector_Data *sd, Efl_Model *child)
double mtime = 0;
Eina_Bool dir = EINA_FALSE;
+ // In case we are shutting down, there might be an error being gnerated
+ if (!parent) return ;
+
+ // We should be good now
if (!_fetch_string_value(parent, "path", &parent_path) ||
!_fetch_string_value(child, "path", &path) ||
!_fetch_string_value(child, "filename", &filename) ||