gdi32/tests: Fix memory leak (found by Smatch).
This commit is contained in:
parent
cf509c29f1
commit
b78ed57a39
|
@ -1828,6 +1828,7 @@ static void test_get16dibits(void)
|
||||||
overwritten_bytes++;
|
overwritten_bytes++;
|
||||||
ok(overwritten_bytes == 0, "GetDIBits wrote past the buffer given\n");
|
ok(overwritten_bytes == 0, "GetDIBits wrote past the buffer given\n");
|
||||||
|
|
||||||
|
HeapFree(GetProcessHeap(), 0, info);
|
||||||
DeleteObject(hbmp);
|
DeleteObject(hbmp);
|
||||||
ReleaseDC(NULL, screen_dc);
|
ReleaseDC(NULL, screen_dc);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue