user32/tests: Fix a memory leak (valgrind).
This commit is contained in:
parent
7257b62bd1
commit
d90d2ab558
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue