mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:33:16 +00:00
Fixing a crash bug But ddraw can leak memmory now. But it is werid that u can not total release the whole dx COM for some program will crash then
svn path=/trunk/; revision=21529
This commit is contained in:
parent
7d8e2e4ab1
commit
737aa06355
1 changed files with 9 additions and 3 deletions
|
@ -152,13 +152,19 @@ Main_DirectDraw_Release (LPDIRECTDRAW7 iface)
|
||||||
{
|
{
|
||||||
ChangeDisplaySettings(NULL, 0);
|
ChangeDisplaySettings(NULL, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Hal_DirectDraw_Release(iface);
|
Hal_DirectDraw_Release(iface);
|
||||||
//Hel_DirectDraw_Release(iface);
|
//Hel_DirectDraw_Release(iface);
|
||||||
|
|
||||||
RtlZeroMemory(&This->mDDrawGlobal, sizeof(DDRAWI_DIRECTDRAW_GBL));
|
RtlZeroMemory(&This->mDDrawGlobal, sizeof(DDRAWI_DIRECTDRAW_GBL));
|
||||||
RtlZeroMemory(This, sizeof(IDirectDrawImpl));
|
//RtlZeroMemory(This, sizeof(IDirectDrawImpl));
|
||||||
|
|
||||||
HeapFree(GetProcessHeap(), 0, This);
|
if (This!=NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
// HeapFree(GetProcessHeap(), 0, This);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ref;
|
return ref;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue