fix: free libnotify notification

This commit is contained in:
LordMZTE 2023-03-07 18:47:28 +01:00
parent 6e3ef1f69e
commit 2db8b32890
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

View file

@ -110,6 +110,7 @@ pub fn main() !void {
}; };
const notif = c.notify_notification_new(title, text, null); 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_set_urgency(notif, @intCast(c_uint, urgency));
_ = c.notify_notification_show(notif, null); _ = c.notify_notification_show(notif, null);
}, },