[tracker/tracker-0.10] tracker-extract,pdf: Plug a leak
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] tracker-extract,pdf: Plug a leak
- Date: Fri, 25 Nov 2011 19:30:56 +0000 (UTC)
commit 6303da78949ff4b66d9f8279dde18aa1c2f4f148
Author: Carlos Garnacho <carlos lanedo com>
Date: Fri Nov 25 12:28:29 2011 +0100
tracker-extract,pdf: Plug a leak
The poppler actions were being leaked. Another warning
about invalid reads has been fixed too
src/tracker-extract/tracker-extract-pdf.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-pdf.c b/src/tracker-extract/tracker-extract-pdf.c
index c4a1f5c..d9c58c4 100644
--- a/src/tracker-extract/tracker-extract-pdf.c
+++ b/src/tracker-extract/tracker-extract-pdf.c
@@ -162,6 +162,7 @@ read_toc (PopplerIndexIter *index,
break;
}
+ poppler_action_free (action);
iter = poppler_index_iter_get_child (index);
read_toc (iter, toc);
} while (poppler_index_iter_next (index));
@@ -211,7 +212,7 @@ extract_content (PopplerDocument *document,
remaining_bytes > 0 &&
g_timer_elapsed (timer, NULL) < 5) {
PopplerPage *page;
- gsize written_bytes;
+ gsize written_bytes = 0;
gchar *text;
page = poppler_document_get_page (document, i);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]