Hans Leidekker : webservices: Avoid a warning from HeapDestroy.

Alexandre Julliard julliard at winehq.org
Thu Sep 13 03:49:17 CDT 2018


Module: wine
Branch: stable
Commit: 5b835e75d95a8ca977615b0d4d3c19cf74901b75
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5b835e75d95a8ca977615b0d4d3c19cf74901b75

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Wed Jun 20 15:04:44 2018 +0200

webservices: Avoid a warning from HeapDestroy.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit ab2f25d40c4e72b8f156af43e615c028bd268db4)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/webservices/heap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/webservices/heap.c b/dlls/webservices/heap.c
index 080cc0d..b4f94af 100644
--- a/dlls/webservices/heap.c
+++ b/dlls/webservices/heap.c
@@ -215,7 +215,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;
 }




More information about the wine-cvs mailing list