[gtksourceview/gnome-3-24] gutterrenderermarks: free composited pixbuf



commit 745b8fa6efd02204076fc782803416ecf9a9b213
Author: Christian Hergert <chergert redhat com>
Date:   Tue Feb 19 11:46:04 2019 -0800

    gutterrenderermarks: free composited pixbuf
    
    This fixes a leak of the composited pixbuf that is generated using the
    source marks within the buffer.
    
    Related to #39

 gtksourceview/gtksourcegutterrenderermarks.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gtksourceview/gtksourcegutterrenderermarks.c b/gtksourceview/gtksourcegutterrenderermarks.c
index 65f2c865..64855bf1 100644
--- a/gtksourceview/gtksourcegutterrenderermarks.c
+++ b/gtksourceview/gtksourcegutterrenderermarks.c
@@ -200,6 +200,8 @@ gutter_renderer_query_data (GtkSourceGutterRenderer      *renderer,
                      "xalign", 0.5,
                      "alignment-mode", GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_FIRST,
                      NULL);
+
+       g_clear_object (&pixbuf);
 }
 
 static gboolean


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