From 4a11609b7634356978e48b8b6976922777cf9e61 Mon Sep 17 00:00:00 2001 From: emersion Date: Mon, 25 Dec 2017 18:18:26 +0100 Subject: Fix use-after-free when destroying selection sources --- include/wlr/types/wlr_data_device.h | 2 ++ include/wlr/types/wlr_primary_selection.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'include') diff --git a/include/wlr/types/wlr_data_device.h b/include/wlr/types/wlr_data_device.h index fa5a7834..4893bbf4 100644 --- a/include/wlr/types/wlr_data_device.h +++ b/include/wlr/types/wlr_data_device.h @@ -126,4 +126,6 @@ void wlr_seat_set_selection(struct wlr_seat *seat, void wlr_data_source_init(struct wlr_data_source *source); +void wlr_data_source_finish(struct wlr_data_source *source); + #endif diff --git a/include/wlr/types/wlr_primary_selection.h b/include/wlr/types/wlr_primary_selection.h index 94309b57..b4eceb78 100644 --- a/include/wlr/types/wlr_primary_selection.h +++ b/include/wlr/types/wlr_primary_selection.h @@ -52,5 +52,7 @@ void wlr_seat_set_primary_selection(struct wlr_seat *seat, void wlr_primary_selection_source_init( struct wlr_primary_selection_source *source); +void wlr_primary_selection_source_finish( + struct wlr_primary_selection_source *source); #endif -- cgit v1.2.3