From 2db8b32890ff991acf145288e58357f33c2068ff Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Tue, 7 Mar 2023 18:47:28 +0100 Subject: [PATCH] fix: free libnotify notification --- src/main.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.zig b/src/main.zig index 1a6ced2..5daf16a 100644 --- a/src/main.zig +++ b/src/main.zig @@ -110,6 +110,7 @@ pub fn main() !void { }; const notif = c.notify_notification_new(title, text, null); + defer c.g_object_unref(notif); c.notify_notification_set_urgency(notif, @intCast(c_uint, urgency)); _ = c.notify_notification_show(notif, null); },