Commit 0e06326f authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

gdiplus: Set result to NULL when CreatePathGradient fails.

parent 1c41470c
......@@ -579,6 +579,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradient(GDIPCONST GpPointF* points,
GdipFree((*grad)->blendfac);
GdipFree((*grad)->blendpos);
GdipFree(*grad);
*grad = NULL;
return OutOfMemory;
}
(*grad)->blendfac[0] = 1.0;
......@@ -672,6 +673,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath* path,
GdipFree((*grad)->blendfac);
GdipFree((*grad)->blendpos);
GdipFree(*grad);
*grad = NULL;
return OutOfMemory;
}
(*grad)->blendfac[0] = 1.0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment