[PATCH] gdiplus/tests: Fix matrix leak (Valgrind)

Nikolay Sivov nsivov at codeweavers.com
Mon Oct 2 13:06:11 CDT 2017


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/gdiplus/tests/matrix.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/gdiplus/tests/matrix.c b/dlls/gdiplus/tests/matrix.c
index 3e655cec8e..5ca0209f6a 100644
--- a/dlls/gdiplus/tests/matrix.c
+++ b/dlls/gdiplus/tests/matrix.c
@@ -164,6 +164,7 @@ static void test_invert(void)
     GdipCreateMatrix2(2.0/16.0, 2.0/16.0, -5.0/16.0, 3.0/16.0, 3.0/16.0, -21.0/16.0, &inverted);
     GdipIsMatrixEqual(matrix, inverted, &equal);
     expect(TRUE, equal);
+    GdipDeleteMatrix(matrix);
 
     GdipCreateMatrix2(0.0006, 0, 0, 0.0006, 400, 400, &matrix);
     status = GdipInvertMatrix(matrix);
-- 
2.14.2




More information about the wine-patches mailing list