[gtksourceview] Gutter: fix memory leak, call parent dispose()



commit 0c35162261d2c7926fb52fa2a53c3ce34b5d9f48
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Jan 17 22:11:24 2014 +0100

    Gutter: fix memory leak, call parent dispose()

 gtksourceview/gtksourcegutter.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/gtksourcegutter.c b/gtksourceview/gtksourcegutter.c
index ae39797..ff8b5d6 100644
--- a/gtksourceview/gtksourcegutter.c
+++ b/gtksourceview/gtksourcegutter.c
@@ -251,6 +251,7 @@ gtk_source_gutter_dispose (GObject *object)
        gint i;
 
        g_list_free_full (gutter->priv->renderers, (GDestroyNotify)renderer_free);
+       gutter->priv->renderers = NULL;
 
        if (gutter->priv->view)
        {
@@ -263,7 +264,7 @@ gtk_source_gutter_dispose (GObject *object)
                gutter->priv->view = NULL;
        }
 
-       gutter->priv->renderers = NULL;
+       G_OBJECT_CLASS (gtk_source_gutter_parent_class)->dispose (object);
 }
 
 static void


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