mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 07:28:53 +00:00
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:
parent
d95d944a34
commit
1b095e9609
1 changed files with 1 additions and 0 deletions
|
@ -2806,6 +2806,7 @@ _set_description_task (GstWebRTCBin * webrtc, struct set_description *sd)
|
||||||
|
|
||||||
if (!validate_sdp (webrtc, sd->source, sd->sdp, &error)) {
|
if (!validate_sdp (webrtc, sd->source, sd->sdp, &error)) {
|
||||||
GST_ERROR_OBJECT (webrtc, "%s", error->message);
|
GST_ERROR_OBJECT (webrtc, "%s", error->message);
|
||||||
|
g_clear_error (&error);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue