fix gtk+ crash. reported, tracked, and patched by serge in ticket #512
This commit is contained in:
parent
1cd5a05fb3
commit
e843d4869c
|
@ -349,18 +349,14 @@ tr_core_handle( TrCore * self )
|
||||||
static void
|
static void
|
||||||
tr_core_insert( TrCore * self, TrTorrent * tor )
|
tr_core_insert( TrCore * self, TrTorrent * tor )
|
||||||
{
|
{
|
||||||
GtkTreeIter iter;
|
const tr_info * inf = tr_torrent_info( tor );
|
||||||
const tr_info * inf;
|
gtk_list_store_insert_with_values( GTK_LIST_STORE( self->model ), NULL, 0,
|
||||||
|
MC_NAME, inf->name,
|
||||||
gtk_list_store_append( GTK_LIST_STORE( self->model ), &iter );
|
MC_SIZE, inf->totalSize,
|
||||||
inf = tr_torrent_info( tor );
|
MC_HASH, inf->hashString,
|
||||||
gtk_list_store_set( GTK_LIST_STORE( self->model ), &iter,
|
MC_TORRENT, tor,
|
||||||
MC_NAME, inf->name,
|
MC_ID, self->nextid,
|
||||||
MC_SIZE, inf->totalSize,
|
-1);
|
||||||
MC_HASH, inf->hashString,
|
|
||||||
MC_TORRENT, tor,
|
|
||||||
MC_ID, self->nextid,
|
|
||||||
-1);
|
|
||||||
g_object_unref( tor );
|
g_object_unref( tor );
|
||||||
self->nextid++;
|
self->nextid++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue