Fix bug http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1757 :
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 22 Aug 2007 16:30:16 +0000 (16:30 +0000)
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 22 Aug 2007 16:30:16 +0000 (16:30 +0000)
commit94d4a3a89ddc2982d28b43465e0e85da638f8ff9
tree2c5d954d066dd1bc7b7b81af5e15b2ebea283dcd
parent7e467dcdec10219e01ddc7e0806b9b190bc4d9e8
Fix bug bugs.wireshark.org/bugzilla/show_bug.cgi?id=1757 :

Try to call get_interface_descriptive_name() as little as possible (storing
the result in capture_opts) to avoid a performance hit during live capture
(especially if you have lots of interfaces) and to avoid leaking memory.

One issue with this is that capture_opts.c cannot (without adding significant
dependencies) set the iface_descr so readers of that field (only gtk/main.c
and tshark.c) use a macro to (set if not already set and) get the value of
that field.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22587 f5534014-38df-0310-8fa8-9805f1628bb7
capture_opts.c
capture_opts.h
capture_ui_utils.c
gtk/capture_dlg.c
gtk/capture_if_dlg.c
gtk/main.c
summary.c
tshark.c