[tracker/tracker-1.10] tracker-extract: FLAC metadata iterator wasn't closed
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-1.10] tracker-extract: FLAC metadata iterator wasn't closed
- Date: Wed, 12 Oct 2016 13:19:29 +0000 (UTC)
commit 691af96358782776530dbd09f0c9527360ecd866
Author: Andrew Branson <andrew branson jollamobile com>
Date: Wed Oct 12 14:27:35 2016 +0200
tracker-extract: FLAC metadata iterator wasn't closed
It must be closed after iterating, otherwise we leak fds.
https://bugzilla.gnome.org/show_bug.cgi?id=772799
src/tracker-extract/tracker-extract-flac.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-flac.c b/src/tracker-extract/tracker-extract-flac.c
index 9cc29d2..fcdd45a 100644
--- a/src/tracker-extract/tracker-extract-flac.c
+++ b/src/tracker-extract/tracker-extract-flac.c
@@ -212,6 +212,8 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
tracker_resource_add_uri (metadata, "rdf:type", "nmm:MusicPiece");
tracker_resource_add_uri (metadata, "rdf:type", "nfo:Audio");
+ FLAC__metadata_simple_iterator_delete (iter);
+
creator = tracker_coalesce_strip (3, fd.artist, fd.albumartist,
fd.performer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]