summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2_input.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-07-24 08:28:39 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-07-24 08:30:05 -0400
commitaae4d21b633d4cfe6839c1685fbebf59e199b60d (patch)
treef19376abfe20adb46a13940daa109cbb00c29b9b /src/lib/ecore_wl2/ecore_wl2_input.c
parent451a93d9d2a03aebc4d6ae9ac4a31ae6432913b7 (diff)
ecore-wl2: handle null offer drags more effectively
this is valid and refers to an offer with no types; a leave event with no enter is a protocol error, however fix T5770 @fix
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_input.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c
index 43d09ccc2e..da6fe7cd59 100644
--- a/src/lib/ecore_wl2/ecore_wl2_input.c
+++ b/src/lib/ecore_wl2/ecore_wl2_input.c
@@ -1691,8 +1691,8 @@ _ecore_wl2_input_del(Ecore_Wl2_Input *input)
1691 wl_data_source_destroy(input->data.selection.source); 1691 wl_data_source_destroy(input->data.selection.source);
1692 if (input->data.drag.source) 1692 if (input->data.drag.source)
1693 wl_data_source_destroy(input->data.drag.source); 1693 wl_data_source_destroy(input->data.drag.source);
1694 if (input->drag) _ecore_wl2_offer_unref(input->drag); 1694 if (input->drag.offer) _ecore_wl2_offer_unref(input->drag.offer);
1695 if (input->selection) _ecore_wl2_offer_unref(input->selection); 1695 if (input->selection.offer) _ecore_wl2_offer_unref(input->selection.offer);
1696 if (input->data.device) wl_data_device_destroy(input->data.device); 1696 if (input->data.device) wl_data_device_destroy(input->data.device);
1697 1697
1698 if (input->xkb.state) xkb_state_unref(input->xkb.state); 1698 if (input->xkb.state) xkb_state_unref(input->xkb.state);