Skip to content

Commit

Permalink
matroska: do not leak attachment buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Penquerc'h committed Jan 12, 2012
1 parent 4835145 commit f04d812
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gst/matroska/matroska-read-common.c
Expand Up @@ -633,6 +633,9 @@ gst_matroska_read_common_parse_attached_file (GstMatroskaReadCommon * common,
else
gst_tag_list_add (taglist, GST_TAG_MERGE_APPEND, GST_TAG_ATTACHMENT,
tagbuffer, NULL);

/* the tag list adds it own ref */
gst_buffer_unref (tagbuffer);
}

g_free (filename);
Expand Down

0 comments on commit f04d812

Please sign in to comment.