diff --git a/gst-libs/gst/mpegts/gstmpegtssection.c b/gst-libs/gst/mpegts/gstmpegtssection.c index dc62ac3ee1..dbbaa9e500 100644 --- a/gst-libs/gst/mpegts/gstmpegtssection.c +++ b/gst-libs/gst/mpegts/gstmpegtssection.c @@ -632,7 +632,8 @@ _gst_mpegts_pmt_free (GstMpegtsPMT * pmt) { if (pmt->descriptors) g_ptr_array_unref (pmt->descriptors); - g_ptr_array_unref (pmt->streams); + if (pmt->streams) + g_ptr_array_unref (pmt->streams); g_slice_free (GstMpegtsPMT, pmt); }