diff options
author | Tor Lillqvist <tml@novell.com> | 2008-05-30 07:17:40 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2008-05-30 07:17:40 +0000 |
commit | 710c9619b944e993f5402e04dc08846851b11f38 (patch) | |
tree | 1272f87e08f03a932f8f5429d6fb776329df637c /gdk | |
parent | 4e48c782cd1530e45e7a31464efabea28b02fa75 (diff) | |
download | gtk+-710c9619b944e993f5402e04dc08846851b11f38.tar.gz |
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
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/win32/gdkevents-win32.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |