Author: gadamopoulos
Date: Fri May 13 08:34:24 2011
New Revision: 51690
URL:
http://svn.reactos.org/svn/reactos?rev=51690&view=rev
Log:
[win32k]
- Dereference the SMWP object before deleting it. Fixes handle leak
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] Fri May 13 08:34:24
2011
@@ -1793,6 +1793,7 @@
winpos->pos.flags);
}
ExFreePoolWithTag(pDWP->acvr, USERTAG_SWP);
+ UserDereferenceObject(pDWP);
UserDeleteObject(hdwp, otSMWP);
return res;
}