efl/selection_manager: only create wl event handlers if using wl connection

Summary:
this codepath is broken if the wl server connection does not exist

Depends on D9252

Reviewers: bu5hm4n

Reviewed By: bu5hm4n

Subscribers: bu5hm4n, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9253
This commit is contained in:
Mike Blumenkrantz 2019-07-10 13:57:33 -04:00
parent 962472da65
commit ac26c0a69d
1 changed files with 6 additions and 3 deletions

View File

@ -5503,9 +5503,12 @@ _efl_ui_selection_manager_efl_object_destructor(Eo *obj, Efl_Ui_Selection_Manage
ecore_event_handler_del(pd->clear_handler);
#endif
#ifdef HAVE_ELEMENTARY_WL2
ecore_event_handler_del(pd->send_handler);
ecore_event_handler_del(pd->changed_handler);
ecore_event_handler_del(pd->end_handler);
if (_elm_wl_display)
{
ecore_event_handler_del(pd->send_handler);
ecore_event_handler_del(pd->changed_handler);
ecore_event_handler_del(pd->end_handler);
}
#endif
free(pd->atom_list);
EINA_LIST_FREE(pd->seat_list, seat_sel)