Stefan Dösinger : wined3d: Free heapMemory, not allocatedMemory when adjusting the surface.
Alexandre Julliard
julliard at winehq.org
Thu Mar 27 07:22:44 CDT 2008
Module: wine
Branch: master
Commit: f761b908013698ee4e015ea03f48ce5d170fb666
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f761b908013698ee4e015ea03f48ce5d170fb666
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Sun Mar 23 16:14:05 2008 +0100
wined3d: Free heapMemory, not allocatedMemory when adjusting the surface.
---
dlls/wined3d/device.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 74d3bf7..ee27abf 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -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;
}
More information about the wine-cvs
mailing list