From: Tim-Philipp Müller Date: Wed, 1 Apr 2009 00:01:46 +0000 (+0100) Subject: Fix rtsp client refcount management in TCP mode. X-Git-Tag: 1.19.3~495^2~1566 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b8ffbbb5c4fc9756fba8dc06dd2e5856bbc0e6c;p=platform%2Fupstream%2Fgstreamer.git Fix rtsp client refcount management in TCP mode. Don't unref a client ref we never had. Fixes an unref of an already-free client object after a client teardown request for me. --- diff --git a/gst/rtsp-server/rtsp-client.c b/gst/rtsp-server/rtsp-client.c index 5711a99..49665e7 100644 --- a/gst/rtsp-server/rtsp-client.c +++ b/gst/rtsp-server/rtsp-client.c @@ -313,7 +313,7 @@ static void unlink_stream (GstRTSPClient *client, GstRTSPSessionStream *stream) { gst_rtsp_session_stream_set_callbacks (stream, NULL, - NULL, client, g_object_unref); + NULL, NULL, NULL); client->streams = g_list_remove (client->streams, stream); }