[tracker-miners] tracker-extract-iso: Plug leaks
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners] tracker-extract-iso: Plug leaks
- Date: Wed, 12 Sep 2018 11:56:08 +0000 (UTC)
commit ae122d55e64f0f15bcb6ad05423b8d9e8e336ab4
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Sep 9 12:28:43 2018 +0200
tracker-extract-iso: Plug leaks
src/tracker-extract/tracker-extract-iso.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-iso.c b/src/tracker-extract/tracker-extract-iso.c
index 66f3c629d..9be345004 100644
--- a/src/tracker-extract/tracker-extract-iso.c
+++ b/src/tracker-extract/tracker-extract-iso.c
@@ -109,6 +109,8 @@ tracker_extract_get_metadata (TrackerExtractInfo *info_)
name = osinfo_product_get_name (OSINFO_PRODUCT (os));
}
+ g_object_unref (variants);
+
if (name != NULL) {
tracker_resource_set_string (metadata, "nie:title", name);
}
@@ -139,8 +141,9 @@ tracker_extract_get_metadata (TrackerExtractInfo *info_)
}
g_list_free (languages);
- g_object_unref (G_OBJECT (media));
- g_object_unref (G_OBJECT (loader));
+ g_object_unref (media);
+ g_object_unref (loader);
+ g_object_unref (os);
tracker_extract_info_set_resource (info_, metadata);
g_object_unref (metadata);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]