(gtk) fix weak unref cycle, also from r5015
This commit is contained in:
parent
d3f07578e2
commit
148b44a83e
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue