dwrite: Fix a leak on error path.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2016-01-11 16:15:55 +03:00 committed by Alexandre Julliard
parent f6862b13b7
commit 0f67df657d
1 changed files with 1 additions and 0 deletions

View File

@ -4054,6 +4054,7 @@ static HRESULT init_textlayout(const WCHAR *str, UINT32 len, IDWriteTextFormat *
free_layout_range(strike);
free_layout_range(effect);
free_layout_range(spacing);
free_layout_range(typography);
hr = E_OUTOFMEMORY;
goto fail;
}