mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
matroska: fix memory leak
After adding to tag list, key_val is not being free'd resulting in memory leak https://bugzilla.gnome.org/show_bug.cgi?id=752992
This commit is contained in:
parent
e6381ef285
commit
72b86ae868
1 changed files with 2 additions and 0 deletions
|
@ -2034,6 +2034,7 @@ gst_matroska_read_common_parse_metadata_id_simple_tag (GstMatroskaReadCommon *
|
|||
key_val = g_strdup_printf ("%s=%s", name_with_parent, value);
|
||||
gst_tag_list_add (*p_taglist, GST_TAG_MERGE_APPEND,
|
||||
GST_TAG_EXTENDED_COMMENT, key_val, NULL);
|
||||
g_free (key_val);
|
||||
} else if (tag && value && *value != '\0') {
|
||||
gboolean matched = FALSE;
|
||||
guint i;
|
||||
|
@ -2078,6 +2079,7 @@ gst_matroska_read_common_parse_metadata_id_simple_tag (GstMatroskaReadCommon *
|
|||
key_val = g_strdup_printf ("%s=%s", tag, value);
|
||||
gst_tag_list_add (*p_taglist, GST_TAG_MERGE_APPEND,
|
||||
GST_TAG_EXTENDED_COMMENT, key_val, NULL);
|
||||
g_free (key_val);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue