[gnome-shell] ShellContactSystem: fix GSList leak
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] ShellContactSystem: fix GSList leak
- Date: Fri, 15 Jun 2012 05:05:29 +0000 (UTC)
commit 2b34978993bffa3bbfa00124f76ca8ea36d42c95
Author: Pavel Vasin <rat4vier gmail com>
Date: Wed Jun 13 20:48:06 2012 +0400
ShellContactSystem: fix GSList leak
https://bugzilla.gnome.org/show_bug.cgi?id=678079
src/shell-contact-system.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/shell-contact-system.c b/src/shell-contact-system.c
index 88d329e..4f5af70 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]