Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Oliver Sander
poppler
Commits
6fedd991
Commit
6fedd991
authored
Dec 28, 2006
by
Albert Astals Cid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* qt4/src/poppler-embeddedfile.cc:
* qt4/src/poppler-document.cc: * qt/poppler-document.cc: Fix memory leaks
parent
7da5885e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
2 deletions
+16
-2
ChangeLog
ChangeLog
+6
-0
qt/poppler-document.cc
qt/poppler-document.cc
+4
-0
qt4/src/poppler-document.cc
qt4/src/poppler-document.cc
+3
-1
qt4/src/poppler-embeddedfile.cc
qt4/src/poppler-embeddedfile.cc
+3
-1
No files found.
ChangeLog
View file @
6fedd991
2006-12-28 Albert Astals Cid <aacid@kde.org>
* qt4/src/poppler-embeddedfile.cc:
* qt4/src/poppler-document.cc:
* qt/poppler-document.cc: Fix memory leaks.
2006-12-28 Albert Astals Cid <aacid@kde.org>
* goo/GooString.cc
...
...
qt/poppler-document.cc
View file @
6fedd991
...
...
@@ -216,6 +216,7 @@ QDateTime Document::getDate( const QString & type ) const
if
(
infoDict
->
lookup
(
(
char
*
)
type
.
latin1
(),
&
obj
)
->
isString
()
)
{
s
=
UGooString
(
*
obj
.
getString
()).
getCString
();
const
char
*
aux
=
s
;
if
(
s
[
0
]
==
'D'
&&
s
[
1
]
==
':'
)
s
+=
2
;
/* FIXME process time zone on systems that support it */
...
...
@@ -232,6 +233,7 @@ QDateTime Document::getDate( const QString & type ) const
else
{
obj
.
free
();
info
.
free
();
delete
[]
aux
;
return
QDateTime
();
}
}
...
...
@@ -241,9 +243,11 @@ QDateTime Document::getDate( const QString & type ) const
if
(
d
.
isValid
()
&&
t
.
isValid
()
)
{
obj
.
free
();
info
.
free
();
delete
[]
aux
;
return
QDateTime
(
d
,
t
);
}
}
delete
[]
aux
;
}
obj
.
free
();
info
.
free
();
...
...
qt4/src/poppler-document.cc
View file @
6fedd991
...
...
@@ -248,7 +248,9 @@ namespace Poppler {
Dict
*
infoDict
=
info
.
getDict
();
// somehow iterate over keys in infoDict
for
(
int
i
=
0
;
i
<
infoDict
->
getLength
();
++
i
)
{
keys
.
append
(
QString
::
fromAscii
(
infoDict
->
getKey
(
i
)
->
getCString
())
);
const
char
*
aux
=
infoDict
->
getKey
(
i
)
->
getCString
();
keys
.
append
(
QString
::
fromAscii
(
aux
)
);
delete
[]
aux
;
}
info
.
free
();
...
...
qt4/src/poppler-embeddedfile.cc
View file @
6fedd991
...
...
@@ -46,7 +46,9 @@ EmbeddedFile::EmbeddedFile(EmbFile *embfile)
{
m_embeddedFile
=
new
EmbeddedFileData
();
m_embeddedFile
->
m_label
=
QString
(
embfile
->
name
()
->
getCString
());
m_embeddedFile
->
m_description
=
QString
(
UGooString
(
*
embfile
->
description
()).
getCString
());
const
char
*
aux
=
UGooString
(
*
embfile
->
description
()).
getCString
();
m_embeddedFile
->
m_description
=
QString
(
aux
);
delete
[]
aux
;
m_embeddedFile
->
m_modDate
=
convertDate
(
embfile
->
modDate
()
->
getCString
());
m_embeddedFile
->
m_createDate
=
convertDate
(
embfile
->
createDate
()
->
getCString
());
embfile
->
streamObject
().
copy
(
&
m_embeddedFile
->
m_streamObject
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment