summaryrefslogtreecommitdiff
path: root/sys/src/cmd/mothra/getpix.c
diff options
context:
space:
mode:
authorstanley lieber <stanley.lieber@gmail.com>2011-10-01 21:30:12 -0500
committerstanley lieber <stanley.lieber@gmail.com>2011-10-01 21:30:12 -0500
commit2036c493940eea8cd9d67fe792713d38b81547af (patch)
treee0543f6be7a813523c1c42beba647341096f41c3 /sys/src/cmd/mothra/getpix.c
parent931dd8bbe81f10047a85ef73298f0548490753fd (diff)
mothra: add moth mode; display images that are not also links as a link to themselves
Diffstat (limited to 'sys/src/cmd/mothra/getpix.c')
-rw-r--r--sys/src/cmd/mothra/getpix.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/src/cmd/mothra/getpix.c b/sys/src/cmd/mothra/getpix.c
index 10e7b7467..a7b82a7c3 100644
--- a/sys/src/cmd/mothra/getpix.c
+++ b/sys/src/cmd/mothra/getpix.c
@@ -43,8 +43,6 @@ void getimage(Rtext *t, Www *w){
for(p=w->pix;p!=nil; p=p->next)
if(strcmp(ap->image, p->name)==0 && ap->width==p->width && ap->height==p->height){
storebitmap(t, p->b);
- free(ap->image);
- ap->image=0;
w->changed=1;
return;
}
@@ -54,8 +52,6 @@ void getimage(Rtext *t, Www *w){
snprint(err, sizeof(err), "[%s: %r]", url.fullname);
free(t->text);
t->text=strdup(err);
- free(ap->image);
- ap->image=0;
w->changed=1;
close(fd);
return;
@@ -99,8 +95,6 @@ void getimage(Rtext *t, Www *w){
p->next=w->pix;
w->pix=p;
storebitmap(t, b);
- free(ap->image);
- ap->image=0;
w->changed=1;
}