From ba0c95312e5ef3848d6562b7cc10262ad02d6573 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sat, 12 Nov 2022 09:57:18 +0100 Subject: [PATCH] streams: Reset stream id field on finalize If debugging is activated, the parent class finalize might attempt to read it Part-of: --- subprojects/gstreamer/gst/gststreams.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gstreamer/gst/gststreams.c b/subprojects/gstreamer/gst/gststreams.c index 1a02187..a6bf5d9 100644 --- a/subprojects/gstreamer/gst/gststreams.c +++ b/subprojects/gstreamer/gst/gststreams.c @@ -191,6 +191,7 @@ gst_stream_finalize (GObject * object) (GstMiniObject *) NULL); gst_caps_replace (&stream->priv->caps, NULL); g_free ((gchar *) stream->stream_id); + stream->stream_id = NULL; G_OBJECT_CLASS (parent_class)->finalize (object); } -- 2.7.4