[gnome-builder/gnome-builder-3-28] omnigutter: fix leak of icon info



commit 7bd232d1183303ccf320ef32c7ae9c2781af7ffa
Author: Christian Hergert <chergert redhat com>
Date:   Tue Aug 14 00:08:04 2018 -0700

    omnigutter: fix leak of icon info

 src/libide/sourceview/ide-omni-gutter-renderer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libide/sourceview/ide-omni-gutter-renderer.c 
b/src/libide/sourceview/ide-omni-gutter-renderer.c
index cf8000686..12db80459 100644
--- a/src/libide/sourceview/ide-omni-gutter-renderer.c
+++ b/src/libide/sourceview/ide-omni-gutter-renderer.c
@@ -1197,8 +1197,8 @@ get_icon_surface (IdeOmniGutterRenderer *self,
                   gint                   size,
                   gboolean               selected)
 {
+  g_autoptr(GtkIconInfo) info = NULL;
   GtkIconTheme *icon_theme;
-  GtkIconInfo *info;
   GdkScreen *screen;
   GtkIconLookupFlags flags;
   gint scale;


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