Commit b78ed57a authored by Lionel Debroux's avatar Lionel Debroux Committed by Alexandre Julliard

gdi32/tests: Fix memory leak (found by Smatch).

parent cf509c29
...@@ -1828,6 +1828,7 @@ static void test_get16dibits(void) ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment