Commit fc753bbb authored by Lei Zhang's avatar Lei Zhang Committed by Alexandre Julliard

gdiplus: Free memory on a failure.

parent 8d53fc56
......@@ -586,7 +586,11 @@ GpStatus WINGDIPAPI GdipCreateTextureIA(GpImage *image,
abs(stride));
*texture = GdipAlloc(sizeof(GpTexture));
if (!*texture) return OutOfMemory;
if (!*texture){
GdipFree(dibits);
GdipFree(buff);
return OutOfMemory;
}
if((status = GdipCreateMatrix(&(*texture)->transform)) != Ok){
GdipFree(*texture);
......
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