From 2bb4433af7a589f15edfbcfdf6bd47701b948ccb Mon Sep 17 00:00:00 2001 From: Dominic Lachowicz Date: Thu, 19 Apr 2007 14:42:12 +0000 Subject: [PATCH] Fix pixbuf leaks in non-WinXP rendering paths. From Daniel Atallah 2007-04-19 Dominic Lachowicz * modules/engines/ms-windows/msw_style.c: Fix pixbuf leaks in non-WinXP rendering paths. From Daniel Atallah (#403470) svn path=/trunk/; revision=17613 --- ChangeLog | 5 +++++ modules/engines/ms-windows/msw_style.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index c35da9a24e..5c2a15e780 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-04-19 Dominic Lachowicz + + * modules/engines/ms-windows/msw_style.c: Fix pixbuf leaks in + non-WinXP rendering paths. From Daniel Atallah (#403470) + 2007-04-19 Matthias Clasen * gtk/gtkicontheme.h: diff --git a/modules/engines/ms-windows/msw_style.c b/modules/engines/ms-windows/msw_style.c index 5fe0c2029a..bb149d86f1 100755 --- a/modules/engines/ms-windows/msw_style.c +++ b/modules/engines/ms-windows/msw_style.c @@ -2497,6 +2497,9 @@ draw_extension (GtkStyle * style, HDC dc; gint32 aPosition; + if (real_gap_side == GTK_POS_BOTTOM) + g_object_unref (pixmap); + dc = get_window_dc(style, window, state_type, x, y, width, height, &rect); if (real_gap_side == GTK_POS_TOP) @@ -2519,6 +2522,9 @@ draw_extension (GtkStyle * style, release_window_dc (style, window, state_type); return; } + + if (real_gap_side == GTK_POS_LEFT || real_gap_side == GTK_POS_RIGHT) + g_object_unref (pixmap); } parent_class->draw_extension (style, window, state_type, shadow_type, area, widget, detail,