diff --git a/ext/webrtc/gstwebrtcbin.c b/ext/webrtc/gstwebrtcbin.c index 6c8674846e..4d7ed83294 100644 --- a/ext/webrtc/gstwebrtcbin.c +++ b/ext/webrtc/gstwebrtcbin.c @@ -2806,6 +2806,7 @@ _set_description_task (GstWebRTCBin * webrtc, struct set_description *sd) if (!validate_sdp (webrtc, sd->source, sd->sdp, &error)) { GST_ERROR_OBJECT (webrtc, "%s", error->message); + g_clear_error (&error); goto out; }