gatchat: Fix memory leak with notify nodes list

The list itself needs to be freed as well and not only its elements.
This commit is contained in:
Marcel Holtmann 2011-05-06 09:19:54 -07:00
parent f35f985235
commit 6d426a19a6
1 changed files with 1 additions and 0 deletions

View File

@ -151,6 +151,7 @@ static void at_notify_destroy(gpointer user_data)
struct at_notify *notify = user_data;
g_slist_foreach(notify->nodes, at_notify_node_destroy, NULL);
g_slist_free(notify->nodes);
g_free(notify);
}