From 0085f64ac073666aa661938f15e8c1190d69a69b Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Tue, 26 Jun 2018 18:51:37 +1000 Subject: Remove timer when transaction destroys --- sway/desktop/transaction.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sway') 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); } -- cgit v1.2.3