diff options
author | emersion <contact@emersion.fr> | 2017-12-25 18:18:26 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-12-25 18:18:26 +0100 |
commit | 4a11609b7634356978e48b8b6976922777cf9e61 (patch) | |
tree | 2ff49ed4006e6972ead3e646a1d7e1777d07920b /include/wlr | |
parent | cdc21cdcff7e8d9beb1f8d0ea00b71b141c17466 (diff) |
Fix use-after-free when destroying selection sources
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_data_device.h | 2 | ||||
-rw-r--r-- | include/wlr/types/wlr_primary_selection.h | 2 |
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 |