mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-05 02:02:26 +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
1 changed files with 3 additions and 0 deletions
|
@ -877,6 +877,7 @@ connect_failed:
|
|||
{
|
||||
GST_ERROR ("failed to connect: %s", error->message);
|
||||
g_clear_error (&error);
|
||||
g_free (uri);
|
||||
return GST_RTSP_ERROR;
|
||||
}
|
||||
remote_address_failed:
|
||||
|
@ -884,11 +885,13 @@ remote_address_failed:
|
|||
GST_ERROR ("failed to connect: %s", error->message);
|
||||
g_object_unref (connection);
|
||||
g_clear_error (&error);
|
||||
g_free (uri);
|
||||
return GST_RTSP_ERROR;
|
||||
}
|
||||
tunneling_failed:
|
||||
{
|
||||
GST_ERROR ("failed to setup tunneling");
|
||||
g_free (uri);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue