fix the memleak

This commit is contained in:
ptrcnull 2023-11-15 02:33:16 +01:00
parent 4e69ce3cc5
commit 5a93a1b803
Signed by: ptrcnull
GPG key ID: 411F7B30801DD9CA

View file

@ -99,6 +99,7 @@ pub fn main() !void {
if (ret == c.FALSE) {
std.log.err("failed to send a notification: {s}", .{g_err.*.message});
}
c.g_object_unref(c.G_OBJECT(notif));
std.log.info("[NOTIFY] battery running low!", .{});
}