Bug 533108 - leak of GDI region in function 'handle_wm_paint'

2008-05-30  Tor Lillqvist  <tml@novell.com>

	Bug 533108 - leak of GDI region in function 'handle_wm_paint'

	* gdk/win32/gdkevents-win32.c (handle_wm_paint): Patch by Daniel
	Atallah.


svn path=/trunk/; revision=20250
This commit is contained in:
Tor Lillqvist 2008-05-30 07:17:40 +00:00 committed by Tor Lillqvist
parent 4e48c782cd
commit 710c9619b9
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2008-05-30 Tor Lillqvist <tml@novell.com>
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 <mclasen@redhat.com>
* configure.in: Bump version

View File

@ -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;
}