diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-01 11:20:28 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-01 11:20:28 +0200 |
commit | 815c2ba22ba5d15cdedd39837d4edb4107eb0b32 (patch) | |
tree | 0e99112e36451d449534ed85a99710a43e9e3ff6 /sys/src/cmd/mothra/getpix.c | |
parent | f62a2efb7add3ec40ca91adc514d5bdb6b0cd721 (diff) |
mothra: support for inline images and <image> tag
Diffstat (limited to 'sys/src/cmd/mothra/getpix.c')
-rw-r--r-- | sys/src/cmd/mothra/getpix.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/src/cmd/mothra/getpix.c b/sys/src/cmd/mothra/getpix.c index 5dd31bb01..4428959d5 100644 --- a/sys/src/cmd/mothra/getpix.c +++ b/sys/src/cmd/mothra/getpix.c @@ -47,7 +47,7 @@ void getimage(Rtext *t, Www *w){ t->text=strdup(err); w->changed=1; close(fd); - return; + goto Out; } typ = snooptype(fd); if(typ < 0 || typ >= nelem(pixcmd) || pixcmd[typ] == nil){ @@ -81,6 +81,9 @@ void getimage(Rtext *t, Www *w){ w->pix=p; t->b=b; w->changed=1; +Out: + free(url.basename); + free(url.reltext); } void getpix(Rtext *t, Www *w){ |