client: fix refcounting crasher
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 3 Apr 2009 07:03:59 +0000 (09:03 +0200)
committerWim Taymans <wim@metal.(none)>
Fri, 3 Apr 2009 17:43:33 +0000 (19:43 +0200)
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.

gst/rtsp-server/rtsp-client.c

index 49665e7..c6c5749 100644 (file)
@@ -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);