fileselector: Fix crash on file select
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 6 Oct 2016 01:59:27 +0000 (10:59 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 6 Oct 2016 03:24:59 +0000 (12:24 +0900)
Fixes T4686 (further fix)

src/lib/elementary/elc_fileselector_button.c

index e25f00b..a2ab8e4 100644 (file)
@@ -71,8 +71,11 @@ static void
 _replace_path_then(void *data, Efl_Event const *event)
 {
    Elm_Fileselector_Button_Data *sd = data;
+   Efl_Future_Event_Success *ev = event->info;
+   Eina_Value *v = ev->value;
    const char *path = NULL;
-   eina_value_get((Eina_Value*)((Efl_Future_Event_Success*)event->info), &path);
+
+   eina_value_get(v, &path);
    eina_stringshare_replace(&sd->fsd.path, path);
    _event_to_legacy_call
      (sd->obj, ELM_FILESELECTOR_BUTTON_EVENT_FILE_CHOSEN, (void *)path);