gtk+ r20250 - in trunk: . gdk/win32
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r20250 - in trunk: . gdk/win32
- Date: Fri, 30 May 2008 07:17:40 +0000 (UTC)
Author: tml
Date: Fri May 30 07:17:40 2008
New Revision: 20250
URL: http://svn.gnome.org/viewvc/gtk+?rev=20250&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/gdk/win32/gdkevents-win32.c
Modified: trunk/gdk/win32/gdkevents-win32.c
==============================================================================
--- trunk/gdk/win32/gdkevents-win32.c (original)
+++ trunk/gdk/win32/gdkevents-win32.c Fri May 30 07:17:40 2008
@@ -1933,6 +1933,7 @@
if (GetUpdateRgn (msg->hwnd, hrgn, FALSE) == ERROR)
{
WIN32_GDI_FAILED ("GetUpdateRgn");
+ DeleteObject (hrgn);
return;
}
@@ -2005,6 +2006,7 @@
}
}
+ DeleteObject (hrgn);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]