From 148b44a83e7a3701bb0a964eaf965c12d2e49125 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 13 Feb 2008 03:43:05 +0000 Subject: [PATCH] (gtk) fix weak unref cycle, also from r5015 --- gtk/file-list.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gtk/file-list.c b/gtk/file-list.c index c9781b777..f912f753c 100644 --- a/gtk/file-list.c +++ b/gtk/file-list.c @@ -374,9 +374,7 @@ static void torrentDestroyed( gpointer gdata, GObject * deadTorrent UNUSED ) { FileData * data = gdata; - - g_object_weak_unref( G_OBJECT( data->gtor ), torrentDestroyed, data ); - + data->gtor = NULL; file_list_set_torrent( data->top, NULL ); }