Commit 6d7d0620 authored by Ell's avatar Ell

app: avoid CRITICAL when loading XCF with empty gimp-image-metadata parasite

(cherry picked from commit d4ff57c7)
parent 42c401dd
......@@ -257,12 +257,14 @@ xcf_load_image (Gimp *gimp,
"gimp-image-metadata");
if (parasite)
{
GimpImagePrivate *private = GIMP_IMAGE_GET_PRIVATE (image);
GimpMetadata *metadata;
GimpImagePrivate *private = GIMP_IMAGE_GET_PRIVATE (image);
GimpMetadata *metadata = NULL;
const gchar *meta_string;
meta_string = (gchar *) gimp_parasite_data (parasite);
metadata = gimp_metadata_deserialize (meta_string);
if (meta_string)
metadata = gimp_metadata_deserialize (meta_string);
if (metadata)
{
......
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