fix the memleak
This commit is contained in:
parent
4e69ce3cc5
commit
5a93a1b803
1 changed files with 1 additions and 0 deletions
|
@ -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!", .{});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue