From ce0e1706fe8aada6be3444b6de3457cb4be1dbe2 Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Mon, 24 Sep 2007 21:13:57 +0100 Subject: [PATCH] gdi32: Fix a memory leak. --- dlls/gdi32/painting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/gdi32/painting.c b/dlls/gdi32/painting.c index 72d818331c4..77d05c2022c 100644 --- a/dlls/gdi32/painting.c +++ b/dlls/gdi32/painting.c @@ -970,7 +970,7 @@ BOOL WINAPI PolyDraw(HDC hdc, const POINT *lppt, const BYTE *lpbTypes, Polyline(hdc, line_pts, num_pts); MoveToEx(hdc, line_pts[num_pts - 1].x, line_pts[num_pts - 1].y, NULL); - + HeapFree(GetProcessHeap(), 0, line_pts); result = TRUE; }