fix memleaks

This commit is contained in:
kongo2002 2015-07-20 11:47:07 +02:00 committed by Eizen
parent 539d4dd102
commit f25c294569

View File

@ -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);