aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-12-25 18:18:26 +0100
committeremersion <contact@emersion.fr>2017-12-25 18:18:26 +0100
commit4a11609b7634356978e48b8b6976922777cf9e61 (patch)
tree2ff49ed4006e6972ead3e646a1d7e1777d07920b /include/wlr
parentcdc21cdcff7e8d9beb1f8d0ea00b71b141c17466 (diff)
Fix use-after-free when destroying selection sources
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_data_device.h2
-rw-r--r--include/wlr/types/wlr_primary_selection.h2
2 files changed, 4 insertions, 0 deletions
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