[gtk+/gtk-2-24] Fix a pixmap leak in the ms-windows engine



commit f65298206279a7baf33d7db7406706b06cb39581
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jun 22 13:05:50 2014 -0400

    Fix a pixmap leak in the ms-windows engine
    
    This was pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=731967.

 modules/engines/ms-windows/msw_style.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/modules/engines/ms-windows/msw_style.c b/modules/engines/ms-windows/msw_style.c
index aaaa1fb..799872b 100755
--- a/modules/engines/ms-windows/msw_style.c
+++ b/modules/engines/ms-windows/msw_style.c
@@ -2647,6 +2647,8 @@ draw_themed_tab_button (GtkStyle *style,
   cairo_paint (cr);
   cairo_destroy (cr);
 
+  g_object_unref (pixmap);
+
   return TRUE;
 }
 


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