aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-10-27 15:15:32 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-10-27 15:15:32 +0000
commit5ca1ee701bc4297180fa9c248d9f8810ef82550c (patch)
tree89eed45b45ca6b0233bde223d5cb852ca7f7fe64 /main.c
parentwayland: implement wayl_win_destroy() (diff)
wayland: move clipboard/primary structs into the wayland struct
These are application global and very wayland specific
Diffstat (limited to 'main.c')
-rw-r--r--main.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/main.c b/main.c
index 267bd89f..0bdfe69a 100644
--- a/main.c
+++ b/main.c
@@ -1151,16 +1151,6 @@ out:
shm_fini();
- if (term.selection.clipboard.data_source != NULL)
- wl_data_source_destroy(term.selection.clipboard.data_source);
- if (term.selection.clipboard.data_offer != NULL)
- wl_data_offer_destroy(term.selection.clipboard.data_offer);
- free(term.selection.clipboard.text);
- if (term.selection.primary.data_source != NULL)
- zwp_primary_selection_source_v1_destroy(term.selection.primary.data_source);
- if (term.selection.primary.data_offer != NULL)
- zwp_primary_selection_offer_v1_destroy(term.selection.primary.data_offer);
- free(term.selection.primary.text);
if (term.kbd.xkb_compose_state != NULL)
xkb_compose_state_unref(term.kbd.xkb_compose_state);
if (term.kbd.xkb_compose_table != NULL)