[tracker/rss-enclosures] tracker-store: Fix update stream leak
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] tracker-store: Fix update stream leak
- Date: Sat, 26 Jun 2010 23:28:26 +0000 (UTC)
commit 1bbf40aefa5abd7b60c05d65116ef068d50f450f
Author: Jürg Billeter <j bitron ch>
Date: Wed Jun 23 14:03:11 2010 +0200
tracker-store: Fix update stream leak
This also drops unnecessary double buffering.
src/tracker-store/tracker-steroids.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-store/tracker-steroids.c b/src/tracker-store/tracker-steroids.c
index 92896bd..07fbb1a 100644
--- a/src/tracker-store/tracker-steroids.c
+++ b/src/tracker-store/tracker-steroids.c
@@ -538,9 +538,10 @@ steroids_update (TrackerSteroids *steroids,
sender = dbus_message_get_sender (message);
- input_stream = g_buffered_input_stream_new_sized (g_unix_input_stream_new (info->fd, TRUE),
- TRACKER_STEROIDS_BUFFER_SIZE);
+ input_stream = g_unix_input_stream_new (info->fd, TRUE);
data_input_stream = g_data_input_stream_new (input_stream);
+ g_buffered_input_stream_set_buffer_size (G_BUFFERED_INPUT_STREAM (data_input_stream),
+ TRACKER_STEROIDS_BUFFER_SIZE);
query_size = g_data_input_stream_read_int32 (data_input_stream,
NULL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]