{
cupsdLogMessage(CUPSD_LOG_ERROR,
"Unable to allocate memory for color profile.");
- CFRelease(profiles);
- ppdClose(ppd);
- return;
+ goto end;
}
apple_init_profile(ppd, languages, profile, profile_id, attr->spec,
{
cupsdLogMessage(CUPSD_LOG_ERROR,
"Unable to allocate memory for color profile.");
- CFRelease(profiles);
- ppdClose(ppd);
- return;
+ goto end;
}
apple_init_profile(ppd, NULL, profile, profile_id, cm_choice->choice,
{
cupsdLogMessage(CUPSD_LOG_ERROR,
"Unable to allocate memory for color profile.");
- CFRelease(profiles);
- ppdClose(ppd);
- return;
+ goto end;
}
profile_id = _ppdHashName("Gray..");
{
cupsdLogMessage(CUPSD_LOG_ERROR,
"Unable to allocate memory for color profile.");
- CFRelease(profiles);
- ppdClose(ppd);
- return;
+ goto end;
}
switch (ppd->colorspace)
/*
* Free any memory we used...
*/
-
+end:
CFRelease(profiles);
ppdClose(ppd);