metadata: fix a few memory leaks

This commit is contained in:
Ell 2017-01-06 19:12:43 -05:00
parent fc293f04d9
commit 38c79600f1
1 changed files with 6 additions and 0 deletions

View File

@ -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