rtspconnection: Fix minor memory leaks in error handling

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726642
This commit is contained in:
Ognyan Tonchev 2014-03-16 17:04:44 +01:00 committed by Wim Taymans
parent e0af857445
commit d7857325c5

View file

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