From fcb2beebdaf7882a7f9e7af9c040a7e0a3a68391 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Thu, 17 Sep 2020 20:05:22 +0200 Subject: selection: reset clipboard/primary->text after free:ing it --- selection.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'selection.c') diff --git a/selection.c b/selection.c index 78811af3..6cfacc02 100644 --- a/selection.c +++ b/selection.c @@ -1010,6 +1010,7 @@ text_to_clipboard(struct seat *seat, struct terminal *term, char *text, uint32_t clipboard->data_source = NULL; clipboard->serial = 0; + clipboard->text = NULL; } clipboard->data_source @@ -1294,6 +1295,7 @@ text_to_primary(struct seat *seat, struct terminal *term, char *text, uint32_t s primary->data_source = NULL; primary->serial = 0; + primary->text = NULL; } primary->data_source -- cgit v1.3