d2d1/tests: Fix stroke style object leak (Valgrind).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2017-07-11 11:36:02 +03:00 committed by Alexandre Julliard
parent 9fe40c24f8
commit d6e2a6f370
1 changed files with 2 additions and 0 deletions

View File

@ -4440,6 +4440,8 @@ static void test_stroke_style(void)
desc.dashStyle = D2D1_DASH_STYLE_CUSTOM;
desc.dashOffset = 0.0f;
ID2D1StrokeStyle_Release(style);
hr = ID2D1Factory_CreateStrokeStyle(factory, &desc, NULL, 0, &style);
ok(hr == E_INVALIDARG, "Unexpected return value, %#x.\n", hr);