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:
Magnus Olsen 2007-06-07 01:12:42 +00:00
parent 0c0bb0a0f4
commit 9ad6d62b37

View file

@ -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)
{