From 2b34978993bffa3bbfa00124f76ca8ea36d42c95 Mon Sep 17 00:00:00 2001 From: Pavel Vasin Date: Wed, 13 Jun 2012 20:48:06 +0400 Subject: [PATCH] ShellContactSystem: fix GSList leak https://bugzilla.gnome.org/show_bug.cgi?id=678079 --- src/shell-contact-system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell-contact-system.c b/src/shell-contact-system.c index 88d329ec3..4f5af7065 100644 --- a/src/shell-contact-system.c +++ b/src/shell-contact-system.c @@ -297,7 +297,7 @@ sort_and_prepare_results (GSList *results) sorted_results = g_slist_prepend (sorted_results, id); } - g_slist_foreach (results, (GFunc) free_result, NULL); + g_slist_free_full (results, (GDestroyNotify) free_result); return sorted_results; }