app: don't leak a GError in gimp_brush_generated_load()

This commit is contained in:
Michael Natterer 2014-07-03 15:47:57 +02:00
parent 70e6d86bdf
commit 87463dbe46
1 changed files with 2 additions and 2 deletions

View File

@ -263,8 +263,6 @@ gimp_brush_generated_load (GimpContext *context,
else
msg = g_strdup_printf (_("File is truncated in line %d"), linenum);
g_clear_error (&my_error);
g_set_error (error, GIMP_DATA_ERROR, GIMP_DATA_ERROR_READ,
_("Error while reading brush file '%s': %s"),
gimp_file_get_utf8_name (file), msg);
@ -272,5 +270,7 @@ gimp_brush_generated_load (GimpContext *context,
g_free (msg);
}
g_clear_error (&my_error);
return NULL;
}