[gnome-shell] ShellContactSystem: fix GSList leak



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]