packet: write explicit type for destroy_heuristic_dissector_list

It is an implementation detail that the data pointer contains a GSList*.
Use the type that got inserted into function
register_heur_dissector_list.

Change-Id: I25b6414afa73818baa0c955a5c8aa7669f3058ee
Reviewed-on: https://code.wireshark.org/review/9035
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
Peter Wu 2015-06-23 00:45:12 +02:00
parent 7db3021f59
commit 15045316f5
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ destroy_heuristic_dissector_entry(gpointer data, gpointer user_data _U_)
static void
destroy_heuristic_dissector_list(void *data)
{
GSList **list = (GSList**)data;
GSList **list = &((heur_dissector_list_t)data)->dissectors;
g_slist_foreach(*list, destroy_heuristic_dissector_entry, NULL);
g_slist_free(*list);