[gtksourceview] Unref the enum class



commit 96d1020113a0789e617395916d67dd22c640fbc2
Author: Paolo Borelli <pborelli gnome org>
Date:   Mon Nov 1 09:53:54 2010 +0100

    Unref the enum class
    
    This causes the type system to create and destroy the type over and
    over, but given it is a test it is not important and I prefer to avoid
    the leak and keep things clean

 tests/test-widget.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-widget.c b/tests/test-widget.c
index a1aa05f..ba0b408 100644
--- a/tests/test-widget.c
+++ b/tests/test-widget.c
@@ -1270,6 +1270,8 @@ bracket_matched (GtkSourceBuffer           *buffer G_GNUC_UNUSED,
 		         gtk_text_iter_get_line (iter) + 1,
 		         gtk_text_iter_get_line_offset (iter) + 1);
 	}
+
+	g_type_class_unref (eclass);
 }
 
 /* Window creation functions -------------------------------------------------------- */



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