aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-09-17 18:02:38 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-09-17 18:02:38 +0000
commitdd18710bb74575e2edfce697f4e9f81b9255e595 (patch)
tree4f7bd4203fa4cd4417092cf67307226f8754451d /selection.c
parentrender: fix rounding errors when setting initial window size and scale != 1 (diff)
selection: primary unset: don’t free text twice
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/selection.c b/selection.c
index f1129b03..78811af3 100644
--- a/selection.c
+++ b/selection.c
@@ -705,7 +705,6 @@ selection_primary_unset(struct seat *seat)
zwp_primary_selection_device_v1_set_selection(
seat->primary_selection_device, NULL, primary->serial);
zwp_primary_selection_source_v1_destroy(primary->data_source);
- free(primary->text);
primary->data_source = NULL;
primary->serial = 0;