Exemplo n.º 1
0
void autosave_event_deinit(void)
{
   unsigned i;

   for (i = 0; i < autosave_state.num; i++)
      autosave_free(autosave_state.list[i]);

   if (autosave_state.list)
      free(autosave_state.list);

   autosave_state.list     = NULL;
   autosave_state.num      = 0;
}
Exemplo n.º 2
0
static void event_deinit_autosave(void)
{
   unsigned i;
   global_t *global = global_get_ptr();

   for (i = 0; i < global->num_autosave; i++)
      autosave_free(global->autosave[i]);

   if (global->autosave)
      free(global->autosave);
   global->autosave     = NULL;

   global->num_autosave = 0;
}
Exemplo n.º 3
0
static void event_deinit_autosave(void)
{
   unsigned i;
   global_t *global = global_get_ptr();

   for (i = 0; i < global->autosave.num; i++)
      autosave_free(global->autosave.list[i]);

   if (global->autosave.list)
      free(global->autosave.list);

   global->autosave.list     = NULL;
   global->autosave.num      = 0;
}