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
Alex Henrie 2016-12-23 01:18:42 -07:00 committed by Alexandre Julliard
parent 176e60074b
commit 046fc19cd1
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}