gdiplus: Fix memory leak in format_string_callback error path.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
176e60074b
commit
046fc19cd1
|
@ -881,6 +881,7 @@ static GpStatus format_string_callback(HDC dc,
|
||||||
start = (char *)ph;
|
start = (char *)ph;
|
||||||
if (!ph || !lengthen_path(path, len / sizeof(POINTFX)))
|
if (!ph || !lengthen_path(path, len / sizeof(POINTFX)))
|
||||||
{
|
{
|
||||||
|
heap_free(ph);
|
||||||
status = OutOfMemory;
|
status = OutOfMemory;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue