summaryrefslogtreecommitdiff
path: root/finch/gntnotify.c
diff options
context:
space:
mode:
authorElliott Sales de Andrade <qulogic@pidgin.im>2019-10-01 01:38:06 -0400
committerElliott Sales de Andrade <qulogic@pidgin.im>2019-10-01 01:38:06 -0400
commitca5c0fea659360ad663fedeedd1fd127fa2d7079 (patch)
treedb3d43177b26ee6b94408a49565a4a19b7f7dad3 /finch/gntnotify.c
parent6adb11143821d92b81cc0b0d37571bec3e2183cd (diff)
downloadpidgin-ca5c0fea659360ad663fedeedd1fd127fa2d7079.tar.gz
Use g_list_free_full instead of g_list_foreach+g_list_free.
Diffstat (limited to 'finch/gntnotify.c')
-rw-r--r--finch/gntnotify.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/finch/gntnotify.c b/finch/gntnotify.c
index dba281765b..d8c687d613 100644
--- a/finch/gntnotify.c
+++ b/finch/gntnotify.c
@@ -378,8 +378,7 @@ notify_button_activated(GntWidget *widget, PurpleNotifySearchButton *b)
list = gnt_tree_get_selection_text_list(GNT_TREE(g_object_get_data(G_OBJECT(widget), "notify-tree")));
b->callback(purple_account_get_connection(account), list, data);
- g_list_foreach(list, (GFunc)g_free, NULL);
- g_list_free(list);
+ g_list_free_full(list, g_free);
}
static void