mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
rtsp-client: Fix factory leaking in find_media() in error cases
https://bugzilla.gnome.org/show_bug.cgi?id=771488
This commit is contained in:
parent
c0f24fea83
commit
ff65732270
1 changed files with 4 additions and 0 deletions
|
@ -729,6 +729,8 @@ no_factory:
|
||||||
}
|
}
|
||||||
no_factory_access:
|
no_factory_access:
|
||||||
{
|
{
|
||||||
|
g_object_unref (factory);
|
||||||
|
ctx->factory = NULL;
|
||||||
GST_ERROR ("client %p: not authorized to see factory path %s", client,
|
GST_ERROR ("client %p: not authorized to see factory path %s", client,
|
||||||
path);
|
path);
|
||||||
/* error reply is already sent */
|
/* error reply is already sent */
|
||||||
|
@ -736,6 +738,8 @@ no_factory_access:
|
||||||
}
|
}
|
||||||
not_authorized:
|
not_authorized:
|
||||||
{
|
{
|
||||||
|
g_object_unref (factory);
|
||||||
|
ctx->factory = NULL;
|
||||||
GST_ERROR ("client %p: not authorized for factory path %s", client, path);
|
GST_ERROR ("client %p: not authorized for factory path %s", client, path);
|
||||||
/* error reply is already sent */
|
/* error reply is already sent */
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue