Commit d41cd2f5 authored by Albert Astals Cid's avatar Albert Astals Cid

qt4/src/poppler-private.h: gmallocn -> new[]

parent f8edfb68
2007-01-04 Albert Astals Cid <aacid@kde.org>
* qt4/src/poppler-private.h: gmallocn -> new[]
2007-01-04 Albert Astals Cid <aacid@kde.org>
* qt/poppler-page-transition.cc: Fix memory leak. Patch by
......
......@@ -45,7 +45,7 @@ namespace Poppler {
static UGooString *QStringToUGooString(const QString &s) {
int len = s.length();
Unicode *u = (Unicode *)gmallocn(s.length(), sizeof(Unicode));
Unicode *u = new Unicode[s.length()];
for (int i = 0; i < len; ++i)
u[i] = s.at(i).unicode();
return new UGooString(u, len);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment