mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 15:33:07 +00:00
Fix freeing lists on process detach
svn path=/trunk/; revision=30428
This commit is contained in:
parent
7ebbdf5274
commit
d3e6d6d283
1 changed files with 6 additions and 6 deletions
|
@ -155,27 +155,27 @@ OPENGL32_ProcessDetach()
|
||||||
{
|
{
|
||||||
dcdata2 = dcdata;
|
dcdata2 = dcdata;
|
||||||
dcdata = dcdata->next;
|
dcdata = dcdata->next;
|
||||||
if (!HeapFree( GetProcessHeap(), 0, dcdata ))
|
if (!HeapFree( GetProcessHeap(), 0, dcdata2 ))
|
||||||
DBGPRINT( "Warning: HeapFree() on DCDATA 0x%08x failed (%d)",
|
DBGPRINT( "Warning: HeapFree() on DCDATA 0x%08x failed (%d)",
|
||||||
dcdata, GetLastError() );
|
dcdata2, GetLastError() );
|
||||||
}
|
}
|
||||||
|
|
||||||
for (glrc = OPENGL32_processdata.glrc_list; glrc != NULL;)
|
for (glrc = OPENGL32_processdata.glrc_list; glrc != NULL;)
|
||||||
{
|
{
|
||||||
glrc2 = glrc;
|
glrc2 = glrc;
|
||||||
glrc = glrc->next;
|
glrc = glrc->next;
|
||||||
if (!HeapFree( GetProcessHeap(), 0, glrc ))
|
if (!HeapFree( GetProcessHeap(), 0, glrc2 ))
|
||||||
DBGPRINT( "Warning: HeapFree() on GLRC 0x%08x failed (%d)",
|
DBGPRINT( "Warning: HeapFree() on GLRC 0x%08x failed (%d)",
|
||||||
glrc, GetLastError() );
|
glrc2, GetLastError() );
|
||||||
}
|
}
|
||||||
|
|
||||||
for (icd = OPENGL32_processdata.driver_list; icd != NULL;)
|
for (icd = OPENGL32_processdata.driver_list; icd != NULL;)
|
||||||
{
|
{
|
||||||
icd2 = icd;
|
icd2 = icd;
|
||||||
icd = icd->next;
|
icd = icd->next;
|
||||||
if (!HeapFree( GetProcessHeap(), 0, icd ))
|
if (!HeapFree( GetProcessHeap(), 0, icd2 ))
|
||||||
DBGPRINT( "Warning: HeapFree() on DRIVERDATA 0x%08x failed (%d)",
|
DBGPRINT( "Warning: HeapFree() on DRIVERDATA 0x%08x failed (%d)",
|
||||||
icd, GetLastError() );
|
icd2, GetLastError() );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* free mutexes */
|
/* free mutexes */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue