Remove timer when transaction destroys

This commit is contained in:
Ryan Dwyer 2018-06-26 18:51:37 +10:00
parent e8001e6fbe
commit 0085f64ac0

View file

@ -102,6 +102,9 @@ static void transaction_destroy(struct sway_transaction *transaction) {
list_foreach(transaction->damage, free); list_foreach(transaction->damage, free);
list_free(transaction->damage); list_free(transaction->damage);
if (transaction->timer) {
wl_event_source_remove(transaction->timer);
}
free(transaction); free(transaction);
} }