client: fix reference counting

This commit is contained in:
David Schleef 2011-06-27 11:26:26 -07:00
parent 93fb73b46f
commit aa128813fe

View file

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