diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2017-09-10 23:38:36 +0100 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2017-09-11 16:48:49 +0000 |
commit | 69f0cb0cef3e8cc6b49073768f76ff1046ded8b5 (patch) | |
tree | 7a6314bf9e04fc5575a8c61df5f62c68be9e76c8 /ui/gtk | |
parent | e7aa63746ba630d88032394f4869fca2c87853a8 (diff) |
wsutil: Initialize and store plugin personal dir
Obviate allocation on every call to get_plugins_pers_dir().
Change-Id: I089ae499f93739d490d4552f59b5db5996f7d26f
Reviewed-on: https://code.wireshark.org/review/23495
Petri-Dish: João Valverde <j@v6e.pt>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'ui/gtk')
-rw-r--r-- | ui/gtk/about_dlg.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/gtk/about_dlg.c b/ui/gtk/about_dlg.c index 020452c1ca..a5d8643f7a 100644 --- a/ui/gtk/about_dlg.c +++ b/ui/gtk/about_dlg.c @@ -460,10 +460,8 @@ about_folders_page_new(void) #if defined(HAVE_PLUGINS) || defined(HAVE_LUA) /* pers plugins */ - path = get_plugins_pers_dir(); - about_folders_row(table, "Personal Plugins", path, + about_folders_row(table, "Personal Plugins", get_plugins_pers_dir(), "dissector plugins"); - g_free(path); /* global plugins */ about_folders_row(table, "Global Plugins", get_plugin_dir(), |