user32/tests: Fix a memory leak (valgrind).

This commit is contained in:
Bruno Jesus 2014-05-29 20:35:13 -03:00 committed by Alexandre Julliard
parent 7257b62bd1
commit d90d2ab558
1 changed files with 1 additions and 0 deletions

View File

@ -1699,6 +1699,7 @@ static void test_GetCursorFrameInfo(void)
ret = DestroyCursor(h1); ret = DestroyCursor(h1);
ok(ret, "DestroyCursor() failed (error = %d).\n", GetLastError()); ok(ret, "DestroyCursor() failed (error = %d).\n", GetLastError());
HeapFree(GetProcessHeap(), 0, hotspot);
cleanup: cleanup:
if(bmpOld) SelectObject(hdc, bmpOld); if(bmpOld) SelectObject(hdc, bmpOld);
if(bmp) DeleteObject(bmp); if(bmp) DeleteObject(bmp);