From f25c2945699a3e6f7b0be3a9e678c51af8959626 Mon Sep 17 00:00:00 2001 From: kongo2002 Date: Mon, 20 Jul 2015 11:47:07 +0200 Subject: [PATCH] fix memleaks --- notification.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/notification.c b/notification.c index cc05ce2..1039cb8 100644 --- a/notification.c +++ b/notification.c @@ -156,6 +156,15 @@ void notification_free(notification * n) free(n->msg); free(n->dbus_client); + if (n->category && *n->category != '\0') + g_free(n->category); + + if (n->text_to_render) + g_free(n->text_to_render); + + if (n->urls) + g_free(n->urls); + if (n->actions) { g_strfreev(n->actions->actions); free(n->actions->dmenu_str);