Browse Source

during removing the plot 'const', also delete the hash table

pre-master-46
Holger Vogt 6 years ago
parent
commit
0cf6b89eb3
  1. 6
      src/frontend/postcoms.c

6
src/frontend/postcoms.c

@ -954,7 +954,7 @@ static void killplot(struct plot *pl)
txfree(pl); /* va: also tfree pl itself (memory leak) */
}
/* delete the const plot (called from com_quit) */
void
destroy_const_plot(void)
{
@ -966,6 +966,10 @@ destroy_const_plot(void)
nv = v->v_next;
vec_free(v);
}
/* delete the hash table entry for the const plot */
if (pl->pl_lookup_table) {
nghash_free(pl->pl_lookup_table, NULL, NULL);
}
wl_free(pl->pl_commands);
if (pl->pl_ccom) /* va: also tfree (memory leak) */
throwaway(pl->pl_ccom);

Loading…
Cancel
Save