webservices: Avoid a warning from HeapDestroy.
Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
bb535b1a2d
commit
ab2f25d40c
|
@ -216,7 +216,7 @@ HRESULT WINAPI WsCreateHeap( SIZE_T max_size, SIZE_T trim_size, const WS_HEAP_PR
|
|||
|
||||
static void reset_heap( struct heap *heap )
|
||||
{
|
||||
HeapDestroy( heap->handle );
|
||||
if (heap->handle) HeapDestroy( heap->handle );
|
||||
heap->handle = NULL;
|
||||
heap->max_size = heap->allocated = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue