e comp wl - remove dead code

listener might maybe be null, but offer - never.

fix CID 1403945
This commit is contained in:
Carsten Haitzler 2019-08-06 18:39:48 +01:00
parent 1c893b064f
commit 33ef4bc881
1 changed files with 1 additions and 1 deletions

View File

@ -285,9 +285,9 @@ _e_comp_wl_data_offer_cb_source_destroy(struct wl_listener *listener, void *data
E_Comp_Wl_Data_Offer *offer;
DBG("Data Offer Source Destroy");
if (!listener) return;
offer = container_of(listener, E_Comp_Wl_Data_Offer,
source_destroy_listener);
if (!offer) return;
offer->source = NULL;
}