Lionel Debroux : gdi32/tests: Fix memory leak (found by Smatch).
Alexandre Julliard
julliard at winehq.org
Mon Oct 22 09:55:35 CDT 2007
Module: wine
Branch: master
Commit: b78ed57a39c8d6c1c3080fc66f78a4f204cc2d69
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b78ed57a39c8d6c1c3080fc66f78a4f204cc2d69
Author: Lionel Debroux <lionel_debroux at yahoo.fr>
Date: Sat Oct 20 21:05:15 2007 +0200
gdi32/tests: Fix memory leak (found by Smatch).
---
dlls/gdi32/tests/bitmap.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/gdi32/tests/bitmap.c b/dlls/gdi32/tests/bitmap.c
index 1ededdc..e1e4437 100644
--- a/dlls/gdi32/tests/bitmap.c
+++ b/dlls/gdi32/tests/bitmap.c
@@ -1828,6 +1828,7 @@ static void test_get16dibits(void)
overwritten_bytes++;
ok(overwritten_bytes == 0, "GetDIBits wrote past the buffer given\n");
+ HeapFree(GetProcessHeap(), 0, info);
DeleteObject(hbmp);
ReleaseDC(NULL, screen_dc);
}
More information about the wine-cvs
mailing list