simplified.

2007-08-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c (run): simplified.

svn path=/trunk/; revision=23123
This commit is contained in:
Sven Neumann 2007-08-06 15:24:04 +00:00 committed by Sven Neumann
parent 99e399e523
commit b53d51ca65
2 changed files with 8 additions and 10 deletions

View File

@ -1,3 +1,7 @@
2007-08-06 Sven Neumann <sven@gimp.org>
* plug-ins/common/lcms.c (run): simplified.
2007-08-06 Sven Neumann <sven@gimp.org> 2007-08-06 Sven Neumann <sven@gimp.org>
* plug-ins/common/svg.c (load_rsvg_pixbuf): set the base URI so * plug-ins/common/svg.c (load_rsvg_pixbuf): set the base URI so

View File

@ -291,8 +291,7 @@ run (const gchar *name,
INIT_I18N (); INIT_I18N ();
values[0].type = GIMP_PDB_STATUS; values[0].type = GIMP_PDB_STATUS;
values[0].data.d_status = status;
*nreturn_vals = 1; *nreturn_vals = 1;
*return_vals = values; *return_vals = values;
@ -304,16 +303,10 @@ run (const gchar *name,
} }
if (proc == NONE) if (proc == NONE)
{ goto done;
values[0].data.d_status = GIMP_PDB_CALLING_ERROR;
return;
}
if (nparams < procedures[proc].nparams) if (nparams < procedures[proc].nparams)
{ goto done;
values[0].data.d_status = GIMP_PDB_CALLING_ERROR;
return;
}
if (proc != PROC_FILE_INFO) if (proc != PROC_FILE_INFO)
config = gimp_get_color_configuration (); config = gimp_get_color_configuration ();
@ -391,6 +384,7 @@ run (const gchar *name,
break; break;
} }
done:
if (config) if (config)
g_object_unref (config); g_object_unref (config);