Bruno Jesus : user32/tests: Fix a memory leak (valgrind).
Module: wine Branch: master Commit: d90d2ab558fc81aee64a29b3f566bab4aa4c8f95 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d90d2ab558fc81aee64a29b3f5... Author: Bruno Jesus <00cpxxx(a)gmail.com> Date: Thu May 29 20:35:13 2014 -0300 user32/tests: Fix a memory leak (valgrind). --- dlls/user32/tests/cursoricon.c | 1 + 1 file changed, 1 insertion(+) 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);
participants (1)
-
Alexandre Julliard