[gedit] Add a comment to clarify memory management.



commit 37926e525e4f9426ae311b97e9519609edb17f37
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Feb 5 17:22:43 2012 +0100

    Add a comment to clarify memory management.

 plugins/modelines/modeline-parser.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/modelines/modeline-parser.c b/plugins/modelines/modeline-parser.c
index a4d15a8..0d4b783 100644
--- a/plugins/modelines/modeline-parser.c
+++ b/plugins/modelines/modeline-parser.c
@@ -123,6 +123,7 @@ load_language_mappings_group (GKeyFile *key_file, const gchar *group)
 
 	for (i = 0; i < length; i++)
 	{
+		/* steal the name string */
 		gchar *name = keys[i];
 		gchar *id = g_key_file_get_string (key_file, group, name, NULL);
 		g_hash_table_insert (table, name, id);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]