[tracker/pdfmem-for-master] tracker-extract: Memory problem in PDF extractor
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/pdfmem-for-master] tracker-extract: Memory problem in PDF extractor
- Date: Thu, 29 Apr 2010 14:30:24 +0000 (UTC)
commit b46c6eecb4f5cf6bee9027ff3d34ed1af04979ac
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Apr 29 16:28:57 2010 +0200
tracker-extract: Memory problem in PDF extractor
src/tracker-extract/tracker-extract-pdf.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-pdf.cpp b/src/tracker-extract/tracker-extract-pdf.cpp
index 50366c3..0441569 100644
--- a/src/tracker-extract/tracker-extract-pdf.cpp
+++ b/src/tracker-extract/tracker-extract-pdf.cpp
@@ -563,7 +563,7 @@ extract_pdf (const gchar *uri,
if (catalog && catalog->isOk ()) {
GooString *s = catalog->readMetadata ();
if ( s != NULL ) {
- xml = s->getCString();
+ xml = g_strdup (s->getCString());
delete s;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]