ShellContactSystem: fix GSList leak

https://bugzilla.gnome.org/show_bug.cgi?id=678079
This commit is contained in:
Pavel Vasin 2012-06-13 20:48:06 +04:00 committed by Jasper St. Pierre
parent 447246da74
commit 2b34978993

View File

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