mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-10 08:35:58 +00:00
rtspconnection: Fix minor memory leaks in error handling
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726642
This commit is contained in:
parent
e0af857445
commit
d7857325c5
|
@ -877,6 +877,7 @@ connect_failed:
|
||||||
{
|
{
|
||||||
GST_ERROR ("failed to connect: %s", error->message);
|
GST_ERROR ("failed to connect: %s", error->message);
|
||||||
g_clear_error (&error);
|
g_clear_error (&error);
|
||||||
|
g_free (uri);
|
||||||
return GST_RTSP_ERROR;
|
return GST_RTSP_ERROR;
|
||||||
}
|
}
|
||||||
remote_address_failed:
|
remote_address_failed:
|
||||||
|
@ -884,11 +885,13 @@ remote_address_failed:
|
||||||
GST_ERROR ("failed to connect: %s", error->message);
|
GST_ERROR ("failed to connect: %s", error->message);
|
||||||
g_object_unref (connection);
|
g_object_unref (connection);
|
||||||
g_clear_error (&error);
|
g_clear_error (&error);
|
||||||
|
g_free (uri);
|
||||||
return GST_RTSP_ERROR;
|
return GST_RTSP_ERROR;
|
||||||
}
|
}
|
||||||
tunneling_failed:
|
tunneling_failed:
|
||||||
{
|
{
|
||||||
GST_ERROR ("failed to setup tunneling");
|
GST_ERROR ("failed to setup tunneling");
|
||||||
|
g_free (uri);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue