void destroy_player(Player *p) { free_str(p->title); free_str(p->prompt); free_str(p->battlePrompt); destroy_flags(p->explored); destroy_flags(p->channels); free_mem(p); }
int f(void) { int a = (x < 5); int t = 1; destroy_flags(); if(a) { t = 42; } return t; }
/* Preferences dialog has been destroyed */ static void cb_pref_destroy(GtkWidget *widget, gpointer data) { GuiInfo *gui; gui = (GuiInfo *) data; dialog = NULL; destroy_flags(newflags); pause_game(gui->game, PAUSE_PREF, 1); }
/* Apply has been clicked */ static void apply_preferences(GuiInfo *gui) { //GuiInfo *gui; //gui = (GuiInfo *) data; save_flags(newflags); destroy_flags(gui->game->flags); gui->game->flags = newflags; newflags = copy_flags(newflags); set_flags_changed(FALSE); }
void destroy_char(Character *ch) { free_str(ch->name); destroy_flags(ch->flags); destroy_flags(ch->affectedBy); free_str(ch->description); free_mem(ch->classes); if (ch->pc != 0) { destroy_player(ch->pc); } if (ch->npc != 0) { destroy_npc(ch->npc); } free_mem(ch); }