mirror of https://github.com/GNOME/gimp.git
app: don't leak a GError in gimp_brush_generated_load()
This commit is contained in:
parent
70e6d86bdf
commit
87463dbe46
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue