aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-11-22 19:24:54 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-11-22 19:24:54 +0000
commit66c42abeea9ec52a8f9045fd817bd01354e2ccd7 (patch)
tree042d323abbbd8688c1aea9a7703fea3b580886e4 /file.c
parentfix indent (diff)
downloadw3m-66c42abeea9ec52a8f9045fd817bd01354e2ccd7.tar.gz
w3m-66c42abeea9ec52a8f9045fd817bd01354e2ccd7.zip
[w3m-dev 03466] Re: background download when external viewer
* file.c (doExternal): UFclose(&uf); From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/file.c b/file.c
index bf18520..a1080ad 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.125 2002/11/22 15:57:29 ukai Exp $ */
+/* $Id: file.c,v 1.126 2002/11/22 19:24:54 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -7118,6 +7118,7 @@ doExternal(URLFile uf, char *path, char *type, Buffer **bufp,
fmInitialized = FALSE;
if (save2tmp(uf, tmpf->ptr) < 0)
exit(1);
+ UFclose(&uf);
myExec(command->ptr);
}
*bufp = NO_BUFFER;
@@ -7128,6 +7129,7 @@ doExternal(URLFile uf, char *path, char *type, Buffer **bufp,
{
if (save2tmp(uf, tmpf->ptr) < 0)
return 0; /* ??? */
+ UFclose(&uf);
}
if (mcap->flags & (MAILCAP_HTMLOUTPUT | MAILCAP_COPIOUSOUTPUT)) {
if (defaultbuf == NULL)