From 03c8301c26ff2cc0104cc51b0ed46863e9434f95 Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Wed, 15 Nov 2017 14:22:52 +0100 Subject: [PATCH] Free old notifications when replaced Do not push old notifications to history, as there would be multiple notifications around with the same ID. --- src/queues.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/queues.c b/src/queues.c index 76c3333..81fb668 100644 --- a/src/queues.c +++ b/src/queues.c @@ -161,7 +161,7 @@ bool queues_notification_replace_id(notification *new) new->start = g_get_monotonic_time(); new->dup_count = old->dup_count; notification_run_script(new); - queues_history_push(old); + notification_free(old); return true; } } @@ -173,7 +173,7 @@ bool queues_notification_replace_id(notification *new) if (old->id == new->id) { iter->data = new; new->dup_count = old->dup_count; - queues_history_push(old); + notification_free(old); return true; } }