diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-04-03 09:03:59 +0200 |
---|---|---|
committer | Wim Taymans <wim@metal.(none)> | 2009-04-03 19:43:33 +0200 |
commit | 47c822bdf3c07d92844b3bf5478076515f0ee303 (patch) | |
tree | 574a09c31197c73a3032db314dbc3e08e1406736 | |
parent | 0b8ffbbb5c4fc9756fba8dc06dd2e5856bbc0e6c (diff) |
client: fix refcounting crasher
Don't need to remove the weak refs in the finalize methods, they are already
removed in the dispose.
Don't register the callback with a DestroyNofity.
-rw-r--r-- | gst/rtsp-server/rtsp-client.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gst/rtsp-server/rtsp-client.c b/gst/rtsp-server/rtsp-client.c index 49665e7..c6c5749 100644 --- a/gst/rtsp-server/rtsp-client.c +++ b/gst/rtsp-server/rtsp-client.c @@ -80,12 +80,9 @@ static void gst_rtsp_client_finalize (GObject * obj) { GstRTSPClient *client = GST_RTSP_CLIENT (obj); - GList *walk; g_message ("finalize client %p", client); - for (walk = client->sessions; walk; walk = g_list_next (walk)) - g_object_weak_unref (G_OBJECT (walk->data), (GWeakNotify) client_session_finalized, client); g_list_free (client->sessions); gst_rtsp_connection_free (client->connection); |