[tracker/tracker-0.8] Bug 622734 - too many open files error / possible file descriptor leak
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.8] Bug 622734 - too many open files error / possible file descriptor leak
- Date: Thu, 1 Jul 2010 16:39:30 +0000 (UTC)
commit 40692ba3d47a96b7541726afb1244bbd456a85fd
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Jun 29 13:49:36 2010 +0200
Bug 622734 - too many open files error / possible file descriptor leak
Free up resources on GStreamer error.
src/tracker-extract/tracker-extract-gstreamer.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index ac5ff98..4627658 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -1168,6 +1168,7 @@ tracker_extract_gstreamer (const gchar *uri,
if (!extractor->pipeline) {
g_warning ("No valid pipeline for uri %s", uri);
+ g_slice_free (MetadataExtractor, extractor);
return;
}
@@ -1176,11 +1177,17 @@ tracker_extract_gstreamer (const gchar *uri,
if (use_tagreadbin) {
if (!poll_for_ready (extractor, GST_STATE_PLAYING, FALSE, TRUE)) {
g_warning ("Error running tagreadbin");
+ gst_object_unref (GST_OBJECT (extractor->pipeline));
+ gst_object_unref (extractor->bus);
+ g_slice_free (MetadataExtractor, extractor);
return;
}
} else {
if (!poll_for_ready (extractor, GST_STATE_PAUSED, TRUE, FALSE)) {
g_warning ("Error running decodebin");
+ gst_object_unref (GST_OBJECT (extractor->pipeline));
+ gst_object_unref (extractor->bus);
+ g_slice_free (MetadataExtractor, extractor);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]