[poppler] poppler/Form.cc
Pino Toscano
pino at kemper.freedesktop.org
Mon Mar 28 10:55:37 PDT 2011
poppler/Form.cc | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit c6081f0bf00d7dcdfa1d09e91e4c9a1fe5a54ad6
Author: Pino Toscano <pino at kde.org>
Date: Mon Mar 28 19:55:00 2011 +0200
delete the temporary buffers created by pdfDocEncodingToUTF16()
diff --git a/poppler/Form.cc b/poppler/Form.cc
index f02820a..158cd57 100644
--- a/poppler/Form.cc
+++ b/poppler/Form.cc
@@ -983,6 +983,7 @@ FormFieldChoice::FormFieldChoice(XRef *xrefA, Object *aobj, const Ref& ref, std:
int len;
char* buffer = pdfDocEncodingToUTF16(choices[i].optionName, &len);
choices[i].optionName->Set(buffer, len);
+ delete [] buffer;
}
}
} else if (obj1.isArray()) {
@@ -1006,6 +1007,7 @@ FormFieldChoice::FormFieldChoice(XRef *xrefA, Object *aobj, const Ref& ref, std:
int len;
char* buffer = pdfDocEncodingToUTF16(choices[i].optionName, &len);
choices[i].optionName->Set(buffer, len);
+ delete [] buffer;
}
}
}
More information about the poppler
mailing list