wined3d: Free heapMemory, not allocatedMemory when adjusting the surface.

This commit is contained in:
Stefan Dösinger 2008-03-23 16:14:05 +01:00 committed by Alexandre Julliard
parent 82d25338aa
commit f761b90801
1 changed files with 3 additions and 1 deletions

View File

@ -6950,7 +6950,9 @@ static void updateSurfaceDesc(IWineD3DSurfaceImpl *surface, WINED3DPRESENT_PARAM
} else {
surface->Flags &= ~SFLAG_NONPOW2;
}
HeapFree(GetProcessHeap(), 0, surface->resource.allocatedMemory);
HeapFree(GetProcessHeap(), 0, surface->resource.heapMemory);
surface->resource.allocatedMemory = NULL;
surface->resource.heapMemory = NULL;
surface->resource.size = IWineD3DSurface_GetPitch((IWineD3DSurface *) surface) * surface->pow2Width;
}