Commit 17da79ef authored by Daniel Sabo's avatar Daniel Sabo

app: Allow myb files with missing icons

parent e86362e6
......@@ -107,13 +107,6 @@ gimp_mybrush_load (GimpContext *context,
48, 48, error);
g_free (preview_filename);
if (! pixbuf)
{
mypaint_brush_unref (mypaint_brush);
g_free (buffer);
return NULL;
}
basename = g_path_get_basename (gimp_file_get_utf8_name (file));
basename[strlen (basename) - 4] = '\0';
......@@ -128,7 +121,9 @@ gimp_mybrush_load (GimpContext *context,
NULL);
g_free (basename);
g_object_unref (pixbuf);
if (pixbuf)
g_object_unref (pixbuf);
brush->priv->brush_json = (gchar *) buffer;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment