1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 00:04:06 +00:00

(trunk gtk) #2485: Crash in preferences dialog when testing the open port

This commit is contained in:
Charles Kerr 2009-10-10 07:29:13 +00:00
parent 7e1d3b0507
commit 448a38557c
2 changed files with 3 additions and 2 deletions

View file

@ -2,4 +2,4 @@
export G_SLICE=always-malloc
export G_DEBUG=gc-friendly
export GLIBCXX_FORCE_NEW=1
valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=64 --log-file=x-valgrind --show-reachable=yes ./transmission -g /tmp/test
valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=64 --log-file=x-valgrind --show-reachable=yes ./transmission -g /tmp/crash

View file

@ -1304,7 +1304,8 @@ onPortTest( GtkButton * button UNUSED, gpointer vdata )
gtk_widget_set_sensitive( data->portButton, FALSE );
gtk_widget_set_sensitive( data->portSpin, FALSE );
gtk_label_set_markup( GTK_LABEL( data->portLabel ), _( "<i>Testing...</i>" ) );
data->portTag = g_signal_connect( data->core, "port-tested", G_CALLBACK(onPortTested), data );
if( !data->portTag )
data->portTag = g_signal_connect( data->core, "port-tested", G_CALLBACK(onPortTested), data );
tr_core_port_test( data->core );
}