forked from Mirrors/wine-wine
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>oldstable
parent
176e60074b
commit
046fc19cd1
|
@ -881,6 +881,7 @@ static GpStatus format_string_callback(HDC dc,
|
|||
start = (char *)ph;
|
||||
if (!ph || !lengthen_path(path, len / sizeof(POINTFX)))
|
||||
{
|
||||
heap_free(ph);
|
||||
status = OutOfMemory;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue