b=469916, lcms error when trying to open 0-sized profile; r=bholley

This commit is contained in:
Vladimir Vukicevic 2009-01-07 11:50:14 -08:00
parent de9797b43d
commit a692693a68

View File

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