diff --git a/ChangeLog b/ChangeLog index e3a68db739..0f5ddc8565 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-05-30 Tor Lillqvist + + Bug 533108 - leak of GDI region in function 'handle_wm_paint' + + * gdk/win32/gdkevents-win32.c (handle_wm_paint): Patch by Daniel + Atallah. + 2008-05-29 Matthias Clasen * configure.in: Bump version diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c index 4a6b308100..2711167bf1 100644 --- a/gdk/win32/gdkevents-win32.c +++ b/gdk/win32/gdkevents-win32.c @@ -1933,6 +1933,7 @@ handle_wm_paint (MSG *msg, if (GetUpdateRgn (msg->hwnd, hrgn, FALSE) == ERROR) { WIN32_GDI_FAILED ("GetUpdateRgn"); + DeleteObject (hrgn); return; } @@ -2005,6 +2006,7 @@ handle_wm_paint (MSG *msg, } } + DeleteObject (hrgn); return; }