streams: Reset stream id field on finalize

If debugging is activated, the parent class finalize might attempt to read it

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3390>
This commit is contained in:
Edward Hervey 2022-11-12 09:57:18 +01:00 committed by Edward Hervey
parent 219c5cf330
commit ba0c95312e

View file

@ -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);
}