From ca996c95964e8922545da91e1a89a54d7b536fae Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Wed, 18 Oct 2017 23:45:15 +0200 Subject: [PATCH] Free notification before closing The notification object should actually get freed by notify_uninit. But before freeing the notification, notify_uninit also sends the CloseNotification signal directly, if the timeout is 0. But the timeout of 0 should actually indicate a notification, which never expires. Fixes #415 --- dunstify.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dunstify.c b/dunstify.c index bb3ecdb..c674be9 100644 --- a/dunstify.c +++ b/dunstify.c @@ -324,6 +324,8 @@ int main(int argc, char *argv[]) g_print("%d\n", get_id(n)); } + g_object_unref(G_OBJECT (n)); + die(0); }