summaryrefslogtreecommitdiffstats
path: root/src/cmd/acme/mail/mesg.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-02-15 23:06:27 +0000
committerrsc <devnull@localhost>2006-02-15 23:06:27 +0000
commit880ab2f10a2d4922d314ff8d016ea078f3c7f019 (patch)
tree9bb0a5bfd45d9a78ec768e1589257f50c635c522 /src/cmd/acme/mail/mesg.c
parent201e19d672a2dab81e213237569022607aced2e1 (diff)
downloadplan9port-880ab2f10a2d4922d314ff8d016ea078f3c7f019.tar.gz
plan9port-880ab2f10a2d4922d314ff8d016ea078f3c7f019.zip
fixed
Diffstat (limited to 'src/cmd/acme/mail/mesg.c')
-rw-r--r--src/cmd/acme/mail/mesg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/acme/mail/mesg.c b/src/cmd/acme/mail/mesg.c
index 9c4e0bb4..9406b799 100644
--- a/src/cmd/acme/mail/mesg.c
+++ b/src/cmd/acme/mail/mesg.c
@@ -720,8 +720,7 @@ mesgcommand(Message *m, char *cmd)
}
if(strcmp(args[0], "Del") == 0){
if(windel(m->w, 0)){
- chanfree(m->w->cevent);
- free(m->w);
+ windecref(m->w);
m->w = nil;
if(m->isreply)
delreply(m);
@@ -886,6 +885,7 @@ mesgctl(void *v)
m = v;
w = m->w;
threadsetname("mesgctl");
+ winincref(w);
proccreate(wineventproc, w, STACK);
for(;;){
e = recvp(w->cevent);