gdiplus/tests: Fix matrix leak (Valgrind).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2017-10-02 21:06:11 +03:00 committed by Alexandre Julliard
parent d56c576bc1
commit 160f5b2387
1 changed files with 1 additions and 0 deletions

View File

@ -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); 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); GdipIsMatrixEqual(matrix, inverted, &equal);
expect(TRUE, equal); expect(TRUE, equal);
GdipDeleteMatrix(matrix);
GdipCreateMatrix2(0.0006, 0, 0, 0.0006, 400, 400, &matrix); GdipCreateMatrix2(0.0006, 0, 0, 0.0006, 400, 400, &matrix);
status = GdipInvertMatrix(matrix); status = GdipInvertMatrix(matrix);