Commit 8953e8d7 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

view: Free the data on error exit (Coverity).

parent a6550abe
......@@ -166,8 +166,10 @@ static HMETAFILE GetPlaceableMetaFile( LPCWSTR szFileName )
}
CloseHandle( handle );
if (!(hmf = SetMetaFileBitsEx(mfHeader.mtSize*2, lpData)))
if (!(hmf = SetMetaFileBitsEx(mfHeader.mtSize*2, lpData))) {
GlobalFree(lpData);
return 0;
}
width = APMHeader.bbox.Right - APMHeader.bbox.Left;
......@@ -181,6 +183,7 @@ static HMETAFILE GetPlaceableMetaFile( LPCWSTR szFileName )
deltax = 0;
deltay = 0 ;
GlobalFree(lpData);
return hmf;
}
......
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