mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-26 20:45:36 +08:00
fix memory leaks in ReleaseDC: do not set region for released DC in slots
This commit is contained in:
@@ -2425,9 +2425,7 @@ void GUIAPI ReleaseDC (HDC hDC)
|
||||
}
|
||||
|
||||
EmptyClipRgn (&pdc->lcrgn);
|
||||
MAKE_REGION_INFINITE(&pdc->lcrgn);
|
||||
EmptyClipRgn (&pdc->ecrgn);
|
||||
MAKE_REGION_INFINITE(&pdc->ecrgn);
|
||||
#ifndef _MGSCHEMA_COMPOSITING
|
||||
pdc->pGCRInfo = NULL;
|
||||
pdc->oldage = 0;
|
||||
|
||||
Reference in New Issue
Block a user