mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
client: fix reference counting
This commit is contained in:
parent
93fb73b46f
commit
aa128813fe
1 changed files with 2 additions and 1 deletions
|
@ -337,6 +337,8 @@ find_media (GstRTSPClient * client, GstRTSPClientState * state)
|
|||
goto no_media;
|
||||
|
||||
g_object_unref (factory);
|
||||
factory = NULL;
|
||||
state->factory = NULL;
|
||||
|
||||
/* set ipv6 on the media before preparing */
|
||||
media->is_ipv6 = client->is_ipv6;
|
||||
|
@ -389,7 +391,6 @@ no_prepare:
|
|||
{
|
||||
send_generic_response (client, GST_RTSP_STS_SERVICE_UNAVAILABLE, state);
|
||||
g_object_unref (media);
|
||||
g_object_unref (factory);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue