diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2009-03-13 22:06:48 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2009-03-13 22:06:48 +0000 |
commit | 62f60df6b4966d4e3d7f478284768115ef150b20 (patch) | |
tree | 259b574936077d87b88ed6d0429ba317078e0fcc /gtk/io_stat.c | |
parent | 7ed615f165fcb0cc87c2aba1921fb87a8a384ca5 (diff) |
From Jakub Zawadzki (bug 3331):
g_free() is NULL safe, so we don't need check against it.
svn path=/trunk/; revision=27718
Diffstat (limited to 'gtk/io_stat.c')
-rw-r--r-- | gtk/io_stat.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/io_stat.c b/gtk/io_stat.c index d2fd824a7e..c4ba37026b 100644 --- a/gtk/io_stat.c +++ b/gtk/io_stat.c @@ -2039,9 +2039,7 @@ create_filter_box(io_stat_graph_t *gio, GtkWidget *box, int num) gio->filter_bt=gtk_button_new_from_stock(WIRESHARK_STOCK_DISPLAY_FILTER_ENTRY); g_snprintf(str, 256, "Wireshark: Display Filter IO-Stat (Filter:%d)", num); - if(gio->args->title){ - g_free( (gpointer) (gio->args->title) ); - } + g_free( (gpointer) (gio->args->title) ); gio->args->title=g_strdup(str); g_signal_connect(gio->filter_bt, "clicked", G_CALLBACK(filter_button_clicked), gio); |