Changeset 9265


Ignore:
Timestamp:
Oct 10, 2009, 7:29:13 AM (12 years ago)
Author:
charles
Message:

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

Location:
trunk/gtk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/my-valgrind.sh

    r9170 r9265  
    33export G_DEBUG=gc-friendly
    44export GLIBCXX_FORCE_NEW=1
    5 valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=64 --log-file=x-valgrind --show-reachable=yes ./transmission -g /tmp/test
     5valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=64 --log-file=x-valgrind --show-reachable=yes ./transmission -g /tmp/crash
  • trunk/gtk/tr-prefs.c

    r8889 r9265  
    13051305    gtk_widget_set_sensitive( data->portSpin, FALSE );
    13061306    gtk_label_set_markup( GTK_LABEL( data->portLabel ), _( "<i>Testing...</i>" ) );
    1307     data->portTag = g_signal_connect( data->core, "port-tested", G_CALLBACK(onPortTested), data );
     1307    if( !data->portTag )
     1308        data->portTag = g_signal_connect( data->core, "port-tested", G_CALLBACK(onPortTested), data );
    13081309    tr_core_port_test( data->core );
    13091310}
Note: See TracChangeset for help on using the changeset viewer.