From c7ef3adff26f5aa5596ed906dd7ede2fe1bea50d Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sat, 26 Apr 2008 12:11:01 +0000 Subject: [PATCH] =?UTF-8?q?Bugfix=20:=20EngDeleteSemaphore=20one=20line=20?= =?UTF-8?q?patch=20by=20Samuel=20Serapi=C3=B3n=20(samcharly=20at=20hotmail?= =?UTF-8?q?=20dot=20com)=20aka=20irc=20:=20encoded=20-------------=20it=20?= =?UTF-8?q?did=20not=20releas=20the=20create=20resuse,=20it=20was=20leakin?= =?UTF-8?q?g.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/trunk/; revision=33148 --- reactos/subsystems/win32/win32k/eng/semaphor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reactos/subsystems/win32/win32k/eng/semaphor.c b/reactos/subsystems/win32/win32k/eng/semaphor.c index 8fa5bda527f..f0f6242ded7 100644 --- a/reactos/subsystems/win32/win32k/eng/semaphor.c +++ b/reactos/subsystems/win32/win32k/eng/semaphor.c @@ -57,6 +57,9 @@ EngDeleteSemaphore ( IN HSEMAPHORE hsem ) { // www.osr.com/ddk/graphics/gdifncs_13c7.htm ASSERT ( hsem ); + + ExDeleteResourceLite((PERESOURCE)hsem); + ExFreePool ( (PVOID)hsem ); }