Add an 'important' note
authorTomas Mlcoch <tmlcoch@redhat.com>
Thu, 12 Jan 2012 09:21:17 +0000 (10:21 +0100)
committerTomas Mlcoch <tmlcoch@redhat.com>
Thu, 12 Jan 2012 09:21:17 +0000 (10:21 +0100)
package.c

index dfd9ed9..5e547fa 100644 (file)
--- a/package.c
+++ b/package.c
@@ -65,6 +65,11 @@ package_free (Package *package)
 {
     g_string_chunk_free (package->chunk);
 
+/* Note: Since glib 2.28
+ * g_slist_foreach && g_slist_free could be replaced with one function:
+ * g_slist_free_full()
+ */
+
     if (package->requires) {
         g_slist_foreach (package->requires, (GFunc) g_free, NULL);
         g_slist_free (package->requires);