[Rawstudio-commit] r775 - trunk/src
Anders Brander
anders at brander.dk
Mon Sep 18 11:20:24 CEST 2006
Author: abrander
Date: 2006-09-18 11:20:23 +0200 (Mon, 18 Sep 2006)
New Revision: 775
Modified:
trunk/src/rawstudio.c
Log:
Now only frees custom_cms_export_profile if it makes sense in rs_cms_init().
Modified: trunk/src/rawstudio.c
===================================================================
--- trunk/src/rawstudio.c 2006-09-18 09:18:00 UTC (rev 774)
+++ trunk/src/rawstudio.c 2006-09-18 09:20:23 UTC (rev 775)
@@ -1489,11 +1489,13 @@
custom_cms_export_profile = rs_get_profile(RS_CMS_PROFILE_EXPORT);
if (custom_cms_export_profile)
+ {
rs->exportProfile = cmsOpenProfileFromFile(custom_cms_export_profile, "r");
- if (rs->exportProfile)
- rs->exportProfileFilename = custom_cms_export_profile;
- else
- g_free(custom_cms_export_profile);
+ if (rs->exportProfile)
+ rs->exportProfileFilename = custom_cms_export_profile;
+ else
+ g_free(custom_cms_export_profile);
+ }
rs->cms_intent = INTENT_PERCEPTUAL; /* default intent */
rs_conf_get_cms_intent(CONF_CMS_INTENT, &rs->cms_intent);
More information about the Rawstudio-commit
mailing list