[gedit] Tiny leak in modeline plugin



commit 4313393031aba2a7641e82beea478d6e7ecc54d6
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Feb 20 23:22:12 2011 +0100

    Tiny leak in modeline plugin

 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 fcb0e0c..a7896ec 100644
--- a/plugins/modelines/modeline-parser.c
+++ b/plugins/modelines/modeline-parser.c
@@ -846,6 +846,7 @@ modeline_parser_apply_modeline (GtkSourceView *view)
 	
 	if (previous)
 	{
+		g_free (previous->language_id);
 		*previous = options;
 		previous->language_id = g_strdup (options.language_id);
 	}



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