Fix the problem with resetting per-frame state info problems that there

seemed to be ...

svn path=/trunk/; revision=2412
This commit is contained in:
Richard Sharpe 2000-09-11 22:43:02 +00:00
parent a85cf466ce
commit bf8e6e763f
1 changed files with 7 additions and 8 deletions

15
file.c
View File

@ -1,7 +1,7 @@
/* file.c
* File I/O routines
*
* $Id: file.c,v 1.218 2000/09/11 07:33:55 sharpe Exp $
* $Id: file.c,v 1.219 2000/09/11 22:43:02 sharpe Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@ -978,15 +978,14 @@ rescan_packets(capture_file *cf, const char *action, gboolean refilter,
* data (the per-frame data itself was freed by
* "init_all_protocols()"). */
fdata->flags.visited = 0;
fdata->pfd = NULL;
}
/* If there is any per-frame data, delete that, as what it points to
* has gone as well.
*/
/* If there is any per-frame data, delete that, as what it points to
* has gone as well.
*/
if (fdata->pfd) {
g_slist_free(fdata->pfd);
if (fdata->pfd) {
g_slist_free(fdata->pfd);
}
fdata->pfd = NULL;
}