Free the Notify object after we free anyone who might use it.
return;
struct Account *a = *ptr;
- notify_free(&a->notify);
if (a->free_adata)
a->free_adata(&a->adata);
account_mailbox_remove(a, NULL);
cs_subset_free(&a->sub);
FREE(&a->name);
+ notify_free(&a->notify);
FREE(ptr);
}
struct Mailbox *m = *ptr;
mailbox_changed(m, MBN_CLOSED);
- notify_free(&m->notify);
if (m->mdata && m->free_mdata)
m->free_mdata(&m->mdata);
mutt_buffer_free(&m->pathbuf);
FREE(&m->name);
FREE(&m->realpath);
+ notify_free(&m->notify);
FREE(ptr);
}
return;
struct NeoMutt *n = *ptr;
- notify_free(&n->notify);
neomutt_account_remove(n, NULL);
cs_subset_free(&n->sub);
+ notify_free(&n->notify);
FREE(ptr);
}