Revert r44049, frame_data_cleanup() is called when redissecting.

svn path=/trunk/; revision=44051
This commit is contained in:
Jakub Zawadzki 2012-07-26 16:41:34 +00:00
parent 3b36a23478
commit 8f308fe1b1
1 changed files with 7 additions and 0 deletions

View File

@ -308,8 +308,15 @@ frame_data_cleanup(frame_data *fdata)
g_slist_free(fdata->pfd);
fdata->pfd = NULL;
}
/* XXX, frame_data_cleanup() is called when redissecting (rescan_packets()),
* which might be triggered by lot of things, like: preferences change, setting manual address resolve, etc.. (grep by redissect_packets)
* fdata->opt_comment can be set by user, which we must not discard when redissecting.
*/
#if 0
if (fdata->opt_comment) {
g_free(fdata->opt_comment);
fdata->opt_comment = NULL;
}
#endif
}