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:
Hans Leidekker 2018-06-20 15:04:44 +02:00 committed by Alexandre Julliard
parent bb535b1a2d
commit ab2f25d40c
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}