mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
Fix pixbuf leaks in non-WinXP rendering paths. From Daniel Atallah
2007-04-19 Dominic Lachowicz <domlachowicz@gmail.com> * modules/engines/ms-windows/msw_style.c: Fix pixbuf leaks in non-WinXP rendering paths. From Daniel Atallah (#403470) svn path=/trunk/; revision=17613
This commit is contained in:
parent
5a706b553b
commit
2bb4433af7
@ -1,3 +1,8 @@
|
||||
2007-04-19 Dominic Lachowicz <domlachowicz@gmail.com>
|
||||
|
||||
* modules/engines/ms-windows/msw_style.c: Fix pixbuf leaks in
|
||||
non-WinXP rendering paths. From Daniel Atallah (#403470)
|
||||
|
||||
2007-04-19 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkicontheme.h:
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user