aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sway/desktop/transaction.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/desktop/transaction.c b/sway/desktop/transaction.c
index 7727ec6e..7a99bfe2 100644
--- a/sway/desktop/transaction.c
+++ b/sway/desktop/transaction.c
@@ -102,6 +102,9 @@ static void transaction_destroy(struct sway_transaction *transaction) {
list_foreach(transaction->damage, free);
list_free(transaction->damage);
+ if (transaction->timer) {
+ wl_event_source_remove(transaction->timer);
+ }
free(transaction);
}