Commit b9a61cde authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

d3d10: Use CRT allocation functions.

parent 24c900b9
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/rbtree.h" #include "wine/rbtree.h"
#include "wine/heap.h"
#define COBJMACROS #define COBJMACROS
#include "winbase.h" #include "winbase.h"
......
...@@ -310,7 +310,7 @@ static ULONG STDMETHODCALLTYPE d3d10_stateblock_Release(ID3D10StateBlock *iface) ...@@ -310,7 +310,7 @@ static ULONG STDMETHODCALLTYPE d3d10_stateblock_Release(ID3D10StateBlock *iface)
{ {
stateblock_cleanup(stateblock); stateblock_cleanup(stateblock);
ID3D10Device_Release(stateblock->device); ID3D10Device_Release(stateblock->device);
heap_free(stateblock); free(stateblock);
} }
return refcount; return refcount;
...@@ -557,7 +557,7 @@ HRESULT WINAPI D3D10CreateStateBlock(ID3D10Device *device, ...@@ -557,7 +557,7 @@ HRESULT WINAPI D3D10CreateStateBlock(ID3D10Device *device,
TRACE("device %p, mask %p, stateblock %p.\n", device, mask, stateblock); TRACE("device %p, mask %p, stateblock %p.\n", device, mask, stateblock);
if (!(object = heap_alloc_zero(sizeof(*object)))) if (!(object = calloc(1, sizeof(*object))))
{ {
ERR("Failed to allocate D3D10 stateblock object memory.\n"); ERR("Failed to allocate D3D10 stateblock object memory.\n");
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment