From ebe7831a75cb837f29fa5f26c39db216ddb78616 Mon Sep 17 00:00:00 2001 From: Rob Farnum Date: Fri, 5 May 2000 18:25:29 +0000 Subject: [PATCH] Removed warnings from freeing path in DeleteDC. --- graphics/path.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphics/path.c b/graphics/path.c index a6b445cb712..5ae37791725 100644 --- a/graphics/path.c +++ b/graphics/path.c @@ -540,8 +540,8 @@ void PATH_DestroyGdiPath(GdiPath *pPath) { assert(pPath!=NULL); - HeapFree( GetProcessHeap(), 0, pPath->pPoints ); - HeapFree( GetProcessHeap(), 0, pPath->pFlags ); + if (pPath->pPoints) HeapFree( GetProcessHeap(), 0, pPath->pPoints ); + if (pPath->pFlags) HeapFree( GetProcessHeap(), 0, pPath->pFlags ); } /* PATH_AssignGdiPath