- do not free the string passed to register_ethereal_tap()
authorlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 28 Feb 2005 01:20:52 +0000 (01:20 +0000)
committerlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 28 Feb 2005 01:20:52 +0000 (01:20 +0000)
it caused the taps to have "funny" names.

- rename the window as "$name Stats Tree"

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13546 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/stats_tree_stat.c

index 185860bdaadcebffdb58a87fd6ab11e5f55ffe01..ece94f6726c83aae968a357dbaf21baf8de15329 100644 (file)
@@ -339,7 +339,6 @@ static void register_gtk_stats_tree_tap (gpointer k _U_, gpointer v, gpointer p
        s = g_strdup_printf("%s,tree",st->abbr);
        
        register_ethereal_tap(s, init_gtk_tree);
-       g_free(s);
        
        st->pr = g_malloc(sizeof(tree_pres));
        st->pr->text = NULL;
@@ -354,7 +353,7 @@ static void register_gtk_stats_tree_tap (gpointer k _U_, gpointer v, gpointer p
        
        st->pr->stat_dlg = g_malloc(sizeof(tap_dfilter_dlg));
        
-       st->pr->stat_dlg->win_title = g_strdup_printf("%s Packet Counter",st->name);
+       st->pr->stat_dlg->win_title = g_strdup_printf("%s Stats Tree",st->name);
        st->pr->stat_dlg->init_string = g_strdup_printf("%s,tree",st->abbr);
        st->pr->stat_dlg->tap_init_cb = init_gtk_tree;
        st->pr->stat_dlg->index = -1;
@@ -365,7 +364,8 @@ static void register_gtk_stats_tree_tap (gpointer k _U_, gpointer v, gpointer p
 
 void
 register_tap_listener_stats_tree_stat(void)
-{      
+{
+       
        stats_tree_presentation(register_gtk_stats_tree_tap,
                                                        setup_gtk_node_pr, NULL,
                                                        NULL,