{
delete ui;
+ voip_calls_reset_all_taps(&tapinfo_);
voip_calls_remove_all_tap_listeners(&tapinfo_);
sequence_analysis_info_free(tapinfo_.graph_analysis);
+ g_queue_free(tapinfo_.callsinfos);
}
void VoipCallsDialog::captureFileClosing()
g_list_free(tapinfo->rtp_stream_list);
tapinfo->rtp_stream_list = NULL;
- if (!tapinfo->h245_labels) {
- /*
- * XXX - given that we set this in fff, will this ever be
- * the case?
- */
- tapinfo->h245_labels = g_new0(h245_labels_t, 1);
- } else {
+ if (tapinfo->h245_labels) {
memset(tapinfo->h245_labels, 0, sizeof(h245_labels_t));
}
{
GString *error_string;
- tap_id_base->h245_labels = g_new0(h245_labels_t, 1);
+ if (!tap_id_base->h245_labels) {
+ tap_id_base->h245_labels = g_new0(h245_labels_t, 1);
+ }
error_string = register_tap_listener("h245dg", tap_base_to_id(tap_id_base, tap_id_offset_h245dg_), NULL,
0,
void
remove_tap_listener_h245dg_calls(voip_calls_tapinfo_t *tap_id_base)
{
+ if (tap_id_base->h245_labels) {
+ g_free(tap_id_base->h245_labels);
+ tap_id_base->h245_labels = NULL;
+ }
remove_tap_listener(tap_base_to_id(tap_id_base, tap_id_offset_h245dg_));
}