[ros-diffs] [weiden] 30428: Fix freeing lists on process detach

weiden at svn.reactos.org weiden at svn.reactos.org
Tue Nov 13 23:59:50 CET 2007


Author: weiden
Date: Wed Nov 14 01:59:49 2007
New Revision: 30428

URL: http://svn.reactos.org/svn/reactos?rev=30428&view=rev
Log:
Fix freeing lists on process detach

Modified:
    trunk/reactos/dll/win32/opengl32/opengl32.c

Modified: trunk/reactos/dll/win32/opengl32/opengl32.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/opengl32/opengl32.c?rev=30428&r1=30427&r2=30428&view=diff
==============================================================================
--- trunk/reactos/dll/win32/opengl32/opengl32.c (original)
+++ trunk/reactos/dll/win32/opengl32/opengl32.c Wed Nov 14 01:59:49 2007
@@ -155,27 +155,27 @@
 	{
 		dcdata2 = dcdata;
 		dcdata = dcdata->next;
-		if (!HeapFree( GetProcessHeap(), 0, dcdata ))
+		if (!HeapFree( GetProcessHeap(), 0, dcdata2 ))
 			DBGPRINT( "Warning: HeapFree() on DCDATA 0x%08x failed (%d)",
-			          dcdata, GetLastError() );
+			          dcdata2, GetLastError() );
 	}
 
 	for (glrc = OPENGL32_processdata.glrc_list; glrc != NULL;)
 	{
 		glrc2 = glrc;
 		glrc = glrc->next;
-		if (!HeapFree( GetProcessHeap(), 0, glrc ))
+		if (!HeapFree( GetProcessHeap(), 0, glrc2 ))
 			DBGPRINT( "Warning: HeapFree() on GLRC 0x%08x failed (%d)",
-			          glrc, GetLastError() );
+			          glrc2, GetLastError() );
 	}
 
 	for (icd = OPENGL32_processdata.driver_list; icd != NULL;)
 	{
 		icd2 = icd;
 		icd = icd->next;
-		if (!HeapFree( GetProcessHeap(), 0, icd ))
+		if (!HeapFree( GetProcessHeap(), 0, icd2 ))
 			DBGPRINT( "Warning: HeapFree() on DRIVERDATA 0x%08x failed (%d)",
-			          icd, GetLastError() );
+			          icd2, GetLastError() );
 	}
 
 	/* free mutexes */




More information about the Ros-diffs mailing list