user32/tests: Fix a memory leak (valgrind)

Bruno Jesus 00cpxxx at gmail.com
Thu May 29 18:35:13 CDT 2014


For bug https://bugs.winehq.org/show_bug.cgi?id=36580
-------------- next part --------------
diff --git a/dlls/user32/tests/cursoricon.c b/dlls/user32/tests/cursoricon.c
index 9540f3d..54d7963 100644
--- a/dlls/user32/tests/cursoricon.c
+++ b/dlls/user32/tests/cursoricon.c
@@ -1699,6 +1699,7 @@ static void test_GetCursorFrameInfo(void)
     ret = DestroyCursor(h1);
     ok(ret, "DestroyCursor() failed (error = %d).\n", GetLastError());
 
+    HeapFree(GetProcessHeap(), 0, hotspot);
 cleanup:
     if(bmpOld) SelectObject(hdc, bmpOld);
     if(bmp) DeleteObject(bmp);


More information about the wine-patches mailing list