forked from enlightenment/efl
efl_fileselector_entry: do not crash on a invalid model
something is happening during shutdown, when a fileselector was created before. This is ending up in a strcmp to a NULL ptr, which crashes, with the now, we ensure that we are not crashing anymore, when that is happning. TO solve this properly we should really fix the cause of a invalid model beeing returned, however, i do not feel compftable doing that so short before a release. Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D11762
This commit is contained in:
parent
1aed1cef59
commit
3614c4190d
|
@ -444,7 +444,7 @@ _elm_fileselector_entry_efl_ui_view_model_get(const Eo *obj, Elm_Fileselector_En
|
|||
free(sd->path);
|
||||
sd->path = elm_entry_markup_to_utf8(elm_object_text_get(sd->entry));
|
||||
|
||||
if (!strcmp(sd->path, efl_io_model_path_get(bmodel)))
|
||||
if (eina_streq(sd->path, efl_io_model_path_get(bmodel)))
|
||||
return bmodel;
|
||||
|
||||
ret = efl_add_ref(efl_class_get(bmodel), (Eo*) obj,
|
||||
|
|
Loading…
Reference in New Issue