[tracker] tracker-extract: Plug leaks in EPUB extractor
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract: Plug leaks in EPUB extractor
- Date: Mon, 28 Nov 2016 01:01:41 +0000 (UTC)
commit e9d7bf40e69ef51680f1ce77d43d6cf6a28a3764
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Nov 27 19:54:02 2016 +0100
tracker-extract: Plug leaks in EPUB extractor
Introduced during the TrackerResource work.
src/tracker-extract/tracker-extract-epub.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-epub.c b/src/tracker-extract/tracker-extract-epub.c
index 4f7b5cf..0827998 100644
--- a/src/tracker-extract/tracker-extract-epub.c
+++ b/src/tracker-extract/tracker-extract-epub.c
@@ -278,6 +278,7 @@ opf_xml_text_handler (GMarkupParseContext *context,
tracker_resource_set_string (publisher, "nco:fullname", text);
tracker_resource_set_relation (data->resource, "nco:publisher", publisher);
+ g_object_unref (publisher);
data->has_publisher = TRUE;
}
@@ -424,6 +425,8 @@ opf_xml_text_handler (GMarkupParseContext *context,
}
tracker_resource_set_relation (data->resource, "nco:creator", contact);
+ g_clear_object (&artist);
+ g_object_unref (contact);
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]