Beispiel #1
0
void pass_opt_done(pass_opt_t* options)
{
  // Free the error collection.
  errors_free(options->check.errors);
  options->check.errors = NULL;

  // Pop all the typechecker frames.
  while(options->check.frame != NULL)
    frame_pop(&options->check);

  if(options->print_stats)
  {
    fprintf(stderr,
      "\nStats:"
      "\n  Names: " __zu
      "\n  Default caps: " __zu
      "\n  Heap alloc: " __zu
      "\n  Stack alloc: " __zu
      "\n",
      options->check.stats.names_count,
      options->check.stats.default_caps_count,
      options->check.stats.heap_alloc,
      options->check.stats.stack_alloc
      );
  }
}
void
cut_teardown (void)
{
    if (context)
        g_object_unref(context);

    if (encoder)
        g_object_unref(encoder);

    if (loop)
        g_object_unref(loop);

    errors_free();

    if (private_data_list)
        gcut_list_string_free(private_data_list);
    if (expected_private_data_list)
        gcut_list_string_free(expected_private_data_list);
}