"Free" is no longer needed and nothing responds to ti. So stop sending it.
Signed-off-by: NeilBrown <neil@brown.name>
image within the parent, and the depth is use to resolve situations
where two panes overlap.
-FIXME mention "Close" and "Free"
+FIXME mention "Close"
### relevant interfaces
should be much easier
- [ ] gather memory usage stats per-pane and allow a dump
- [ ] show doc size in doc list - include undo size?
-- [ ] Ensure all panes that should use "Free" properly, and find some
+- [X] Ensure all panes that should use "Free" properly, and find some
way to encourage its use.
- [ ] Add optional unit-test interface for modules. This should be
implemented at least by lib-search, doc-text and probably many
ei->freelist = p->focus;
p->focus = NULL;
- p->damaged &= ~DAMAGED_DEAD;
- pane_call(p, "Free", p);
command_put(p->handle);
p->handle = NULL;
attr_free(&p->attrs);
{
struct ed_info *ei = ed->data;
if (!ei) {
- p->damaged &= ~DAMAGED_DEAD;
- pane_call(p, "Free", p);
command_put(p->handle);
p->handle = NULL;
attr_free(&p->attrs);
/* If a child has not yet had "Close" called, we need to leave
* ->parent in place so a full range of commands are available.
*/
+ p->damaged |= DAMAGED_DEAD;
if (ed != p) {
- p->damaged |= DAMAGED_DEAD;
editor_delayed_free(ed, p);
} else {
- pane_call(p, "Free", p);
command_put(p->handle);
p->handle = NULL;
attr_free(&p->attrs);
ci.home = home;
if ((home->damaged & DAMAGED_CLOSED) &&
strncmp(ci.key, "Close", 5) != 0 &&
- strcmp(ci.key, "Notify:Close") != 0 &&
- strcmp(ci.key, "Free") != 0)
+ strcmp(ci.key, "Notify:Close") != 0)
/* This pane cannot accept anything but
- * "Close" or "Close:mark" or "Free"
+ * "Close" or "Close:mark" or "Notify:Close"
*/
return Efail;
ci.comm = home->handle;