diff --git a/subprojects/gst-plugins-good/gst/matroska/ebml-read.c b/subprojects/gst-plugins-good/gst/matroska/ebml-read.c index f66990b35e..6ffc9f1113 100644 --- a/subprojects/gst-plugins-good/gst/matroska/ebml-read.c +++ b/subprojects/gst-plugins-good/gst/matroska/ebml-read.c @@ -175,7 +175,7 @@ void gst_ebml_read_clear (GstEbmlRead * ebml) { if (ebml->readers) - g_array_free (ebml->readers, TRUE); + g_array_unref (ebml->readers); ebml->readers = NULL; if (ebml->buf) { gst_buffer_unmap (ebml->buf, &ebml->map); diff --git a/subprojects/gst-plugins-good/gst/matroska/matroska-demux.c b/subprojects/gst-plugins-good/gst/matroska/matroska-demux.c index 1eb429f938..ae3588487b 100644 --- a/subprojects/gst-plugins-good/gst/matroska/matroska-demux.c +++ b/subprojects/gst-plugins-good/gst/matroska/matroska-demux.c @@ -328,7 +328,7 @@ gst_matroska_demux_reset (GstElement * element) demux->tracks_parsed = FALSE; if (demux->clusters) { - g_array_free (demux->clusters, TRUE); + g_array_unref (demux->clusters); demux->clusters = NULL; } diff --git a/subprojects/gst-plugins-good/gst/matroska/matroska-ids.c b/subprojects/gst-plugins-good/gst/matroska/matroska-ids.c index eca5279224..f11b7c2ce3 100644 --- a/subprojects/gst-plugins-good/gst/matroska/matroska-ids.c +++ b/subprojects/gst-plugins-good/gst/matroska/matroska-ids.c @@ -349,14 +349,14 @@ gst_matroska_track_free (GstMatroskaTrackContext * track) g_free (enc->comp_settings); } - g_array_free (track->encodings, TRUE); + g_array_unref (track->encodings); } if (track->tags) gst_tag_list_unref (track->tags); if (track->index_table) - g_array_free (track->index_table, TRUE); + g_array_unref (track->index_table); if (track->stream_headers) gst_buffer_list_unref (track->stream_headers); diff --git a/subprojects/gst-plugins-good/gst/matroska/matroska-read-common.c b/subprojects/gst-plugins-good/gst/matroska/matroska-read-common.c index e2bedc8c1a..2b63c03d56 100644 --- a/subprojects/gst-plugins-good/gst/matroska/matroska-read-common.c +++ b/subprojects/gst-plugins-good/gst/matroska/matroska-read-common.c @@ -1809,7 +1809,7 @@ gst_matroska_read_common_parse_index (GstMatroskaReadCommon * common, guint i; if (common->index) - g_array_free (common->index, TRUE); + g_array_unref (common->index); common->index = g_array_sized_new (FALSE, FALSE, sizeof (GstMatroskaIndex), 128); @@ -1897,7 +1897,7 @@ gst_matroska_read_common_parse_index (GstMatroskaReadCommon * common, /* sanity check; empty index normalizes to no index */ if (common->index->len == 0) { - g_array_free (common->index, TRUE); + g_array_unref (common->index); common->index = NULL; } @@ -3319,7 +3319,7 @@ gst_matroska_read_common_reset (GstElement * element, /* reset indexes */ if (ctx->index) { - g_array_free (ctx->index, TRUE); + g_array_unref (ctx->index); ctx->index = NULL; }