From: Edward Hervey Date: Sat, 12 Nov 2022 08:57:18 +0000 (+0100) Subject: streams: Reset stream id field on finalize X-Git-Tag: 1.22.0~467 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba0c95312e5ef3848d6562b7cc10262ad02d6573;p=platform%2Fupstream%2Fgstreamer.git streams: Reset stream id field on finalize If debugging is activated, the parent class finalize might attempt to read it Part-of: --- 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); }