[gedit] modelines: fix memory leak



commit 35bc6d8ad5daa2c96e4c46aaaa7be948196aa444
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Fri Mar 9 15:37:55 2012 +0100

    modelines: fix memory leak

 plugins/modelines/modeline-parser.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/modelines/modeline-parser.c b/plugins/modelines/modeline-parser.c
index 099bd34..b34cfb2 100644
--- a/plugins/modelines/modeline-parser.c
+++ b/plugins/modelines/modeline-parser.c
@@ -879,7 +879,8 @@ modeline_parser_apply_modeline (GtkSourceView *view)
 		                        previous,
 		                        (GDestroyNotify)free_modeline_options);
 	}
-	
+
+	g_object_unref (settings);
 	g_free (options.language_id);
 }
 



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