Commit 886dbff6 authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

unref the metadata after use

parent 561cfe7a
......@@ -43,17 +43,19 @@ static gpointer parent_class = NULL;
static void
set_attribute_from_string (GFileInfo *info,
const char *key,
const char *value,
const char *raw,
const char *formatted)
GthMetadata *metadata;
metadata = g_object_new (GTH_TYPE_METADATA,
"id", key,
"raw", value,
"formatted", (formatted != NULL ? formatted : value),
"raw", raw,
"formatted", (formatted != NULL ? formatted : raw),
g_file_info_set_attribute_object (info, key, G_OBJECT (metadata));
g_object_unref (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