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:
parent
f6862b13b7
commit
0f67df657d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue