Nikolay Sivov : gdiplus/tests: Fix matrix leak (Valgrind).

Alexandre Julliard julliard at winehq.org
Tue Oct 3 15:39:52 CDT 2017


Module: wine
Branch: master
Commit: 160f5b2387a7b1e36f254e5393770a2efd7397f5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=160f5b2387a7b1e36f254e5393770a2efd7397f5

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Oct  2 21:06:11 2017 +0300

gdiplus/tests: Fix matrix leak (Valgrind).

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 3e655ce..5ca0209 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);




More information about the wine-cvs mailing list