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:
committed by
Tor Lillqvist
parent
4e48c782cd
commit
710c9619b9
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user