Commit 38c79600 authored by Ell's avatar Ell

metadata: fix a few memory leaks

parent fc293f04
......@@ -300,6 +300,8 @@ metadata_dialog_set_metadata (GExiv2Metadata *metadata,
metadata_dialog_append_tags (metadata, exif_data,
exif_store, C_EXIF_TAG, C_EXIF_VALUE);
g_strfreev (exif_data);
xmp_data = gexiv2_metadata_get_xmp_tags (metadata);
xmp_store = GTK_LIST_STORE (gtk_builder_get_object (builder,
"xmp-liststore"));
......@@ -307,6 +309,8 @@ metadata_dialog_set_metadata (GExiv2Metadata *metadata,
metadata_dialog_append_tags (metadata, xmp_data,
xmp_store, C_XMP_TAG, C_XMP_VALUE);
g_strfreev (xmp_data);
iptc_data = gexiv2_metadata_get_iptc_tags (metadata);
for (i = 0; iptc_data[i] != NULL; i++)
......@@ -335,6 +339,8 @@ metadata_dialog_set_metadata (GExiv2Metadata *metadata,
g_free (value);
}
g_strfreev (iptc_data);
}
static void
......
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