[gedit] modelines: unref the hash tables
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] modelines: unref the hash tables
- Date: Fri, 9 Mar 2012 20:52:46 +0000 (UTC)
commit 30fee6cb790b83bdbf1bf9fd550c5772b4fcb4f6
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Fri Mar 9 15:34:19 2012 +0100
modelines: unref the hash tables
plugins/modelines/modeline-parser.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/modelines/modeline-parser.c b/plugins/modelines/modeline-parser.c
index b65c3b0..e83121f 100644
--- a/plugins/modelines/modeline-parser.c
+++ b/plugins/modelines/modeline-parser.c
@@ -90,13 +90,13 @@ void
modeline_parser_shutdown ()
{
if (vim_languages != NULL)
- g_hash_table_destroy (vim_languages);
+ g_hash_table_unref (vim_languages);
if (emacs_languages != NULL)
- g_hash_table_destroy (emacs_languages);
+ g_hash_table_unref (emacs_languages);
if (kate_languages != NULL)
- g_hash_table_destroy (kate_languages);
+ g_hash_table_unref (kate_languages);
vim_languages = NULL;
emacs_languages = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]