forked from osmocom/wireshark
Fix a minor memory leak.
svn path=/trunk/; revision=24616
This commit is contained in:
parent
bf75c9eac6
commit
4718890a3c
|
@ -1439,6 +1439,7 @@ static guint merge_tap_menus_layered(GList *node, gint group) {
|
|||
gtk_item_factory_create_item(main_menu_factory, entry, node_data->callback_data, /* callback_type */ 2);
|
||||
set_menu_sensitivity(main_menu_factory, node_data->name, FALSE); /* no capture file yet */
|
||||
added++;
|
||||
g_free(entry);
|
||||
}
|
||||
} else {
|
||||
/*
|
||||
|
@ -1459,6 +1460,7 @@ static guint merge_tap_menus_layered(GList *node, gint group) {
|
|||
set_menu_sensitivity(main_menu_factory, node_data->name,
|
||||
FALSE); /* no children yet */
|
||||
added++;
|
||||
g_free(entry);
|
||||
}
|
||||
|
||||
for (child = node_data->children; child != NULL; child =
|
||||
|
|
Loading…
Reference in New Issue