/* Free a frame_data_sequence and all the frame_data structures in it.  */
void free_frame_data_sequence(frame_data_sequence *fds)
/* Free a frame_data_sequence and all the frame_data structures in it.  */
void free_frame_data_sequence(frame_data_sequence *fds)
{
  guint32 count  = fds->count;
  guint   levels = 0;
  while (count) {
    levels++;
    count >>= LOG2_NODES_PER_LEVEL;
  }
  if (levels > 0) {
    free_frame_data_array(fds->ptree_root, fds->count, levels, TRUE);
  }
  g_free(fds);
}