From 1868e3ec7332fb95e35998e83e5c1a41323e0b4c Mon Sep 17 00:00:00 2001 From: etxrab Date: Mon, 13 Feb 2012 18:58:14 +0000 Subject: [PATCH] From Sean Bright: Wireshark crashes after editing interface settings from capture options dialog. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6788 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@41017 f5534014-38df-0310-8fa8-9805f1628bb7 --- ui/gtk/capture_dlg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/gtk/capture_dlg.c b/ui/gtk/capture_dlg.c index 1ef8ba920f..78dc6994cf 100644 --- a/ui/gtk/capture_dlg.c +++ b/ui/gtk/capture_dlg.c @@ -1677,6 +1677,7 @@ update_options_table(gint index) path_str = g_strdup_printf("%d", index); path = gtk_tree_path_new_from_string(path_str); model = gtk_tree_view_get_model(if_cb); + gtk_tree_model_get_iter(model, &iter, path); gtk_tree_model_get(model, &iter, CAPTURE, &enabled, -1); if (enabled == FALSE) { device.selected = TRUE; @@ -1697,6 +1698,7 @@ update_options_table(gint index) gtk_widget_set_sensitive(ok_bt, FALSE); } gtk_tree_path_free (path); + g_free(path_str); } if (interfaces_dialog_window_present()) { update_selected_interface(g_strdup(device.name)); -- 2.34.1