app: move deref after NULL check

This commit is contained in:
Mikael Magnusson 2013-06-15 23:18:17 +02:00
parent 0091645129
commit 77e6ab690d
1 changed files with 3 additions and 1 deletions

View File

@ -201,7 +201,7 @@ gimp_operation_cage_coef_calc_process (GeglOperation *operation,
GimpOperationCageCoefCalc *occc = GIMP_OPERATION_CAGE_COEF_CALC (operation);
GimpCageConfig *config = GIMP_CAGE_CONFIG (occc->config);
const Babl *format = babl_format_n (babl_type ("float"), 2 * gimp_cage_config_get_n_points (config));
const Babl *format;
GeglBufferIterator *it;
guint n_cage_vertices;
@ -210,6 +210,8 @@ gimp_operation_cage_coef_calc_process (GeglOperation *operation,
if (! config)
return FALSE;
format = babl_format_n (babl_type ("float"), 2 * gimp_cage_config_get_n_points (config));
n_cage_vertices = gimp_cage_config_get_n_points (config);
it = gegl_buffer_iterator_new (output, roi, 0, format,