mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
Fixing another bugm, leaking memory, it will when we trying alloc memory for FourCC, this bug fix it and I manger come bit futher with my werid crash
svn path=/trunk/; revision=27031
This commit is contained in:
parent
0c0bb0a0f4
commit
9ad6d62b37
1 changed files with 11 additions and 1 deletions
|
@ -485,7 +485,11 @@ StartDirectDrawHal(LPDIRECTDRAW iface, BOOL reenable)
|
|||
DX_STUB_str("Here\n");
|
||||
|
||||
/* Alloc mpFourCC */
|
||||
|
||||
if (This->lpLcl->lpGbl->lpdwFourCC != NULL)
|
||||
{
|
||||
DxHeapMemFree(This->lpLcl->lpGbl->lpdwFourCC);
|
||||
}
|
||||
|
||||
// if (mHALInfo.ddCaps.dwNumFourCCCodes > 0 )
|
||||
// {
|
||||
//mpFourCC = (DWORD *) DxHeapMemAlloc( sizeof(DWORD) * 21);
|
||||
|
@ -513,6 +517,12 @@ StartDirectDrawHal(LPDIRECTDRAW iface, BOOL reenable)
|
|||
|
||||
/* Alloc mpTextures */
|
||||
#if 0
|
||||
|
||||
if (This->lpLcl->lpGbl->texture != NULL)
|
||||
{
|
||||
DxHeapMemFree(This->lpLcl->lpGbl->texture;
|
||||
}
|
||||
|
||||
mpTextures = NULL;
|
||||
if (mD3dDriverData.dwNumTextureFormats > 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue