summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/JSInfo.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/JSInfo.cc b/utils/JSInfo.cc
index 00282391..17b10329 100644
--- a/utils/JSInfo.cc
+++ b/utils/JSInfo.cc
@@ -34,7 +34,7 @@ JSInfo::~JSInfo() {
}
void JSInfo::printJS(GooString *js) {
- Unicode *u;
+ Unicode *u = NULL;
char buf[8];
int i, n, len;
@@ -46,6 +46,7 @@ void JSInfo::printJS(GooString *js) {
n = uniMap->mapUnicode(u[i], buf, sizeof(buf));
fwrite(buf, 1, n, file);
}
+ gfree(u);
}
void JSInfo::scanLinkAction(LinkAction *link, const char *action, bool deleteLink) {