webrtc: fix memory leak

When it parses SDP, it doesn't free the error object.

https://bugzilla.gnome.org/show_bug.cgi?id=796830
This commit is contained in:
Sam Gigliotti 2018-07-18 14:26:17 +01:00 committed by Tim-Philipp Müller
parent d95d944a34
commit 1b095e9609

View file

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