mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-03 04:52:54 +00:00
b=469916, lcms error when trying to open 0-sized profile; r=bholley
This commit is contained in:
parent
de9797b43d
commit
a692693a68
@ -554,8 +554,10 @@ gfxPlatformGtk::GetPlatformCMSOutputProfile()
|
||||
&retAtom, &retFormat, &retLength,
|
||||
&retAfter, &retProperty);
|
||||
|
||||
cmsHPROFILE profile =
|
||||
cmsOpenProfileFromMem(retProperty, retLength);
|
||||
cmsHPROFILE profile = NULL;
|
||||
|
||||
if (retLength > 0)
|
||||
profile = cmsOpenProfileFromMem(retProperty, retLength);
|
||||
|
||||
XFree(retProperty);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user