[tracker/dbus-fd-experiment] Steroids client: Do not leak in fast_async_callback_iterator



commit 15513af64935ba275155280fcbdc9c82680e6dcb
Author: Adrien Bustany <abustany gnome org>
Date:   Thu Jun 17 10:24:28 2010 -0400

    Steroids client: Do not leak in fast_async_callback_iterator

 src/libtracker-client/tracker.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-client/tracker.c b/src/libtracker-client/tracker.c
index 6b52401..104ca6b 100644
--- a/src/libtracker-client/tracker.c
+++ b/src/libtracker-client/tracker.c
@@ -625,6 +625,7 @@ fast_async_callback_iterator (GObject      *source_object,
 		tracker_result_iterator_free (iterator);
 		dbus_pending_call_unref (data->dbus_call);
 		g_error_free (inner_error);
+		g_slice_free (FastAsyncData, data);
 		return;
 	}
 
@@ -658,6 +659,8 @@ fast_async_callback_iterator (GObject      *source_object,
 	dbus_pending_call_unref (data->dbus_call);
 
 	(* data->iterator_callback) (iterator, NULL, data->user_data);
+
+	g_slice_free (FastAsyncData, data);
 }
 
 #else  /* HAVE_DBUS_FD_PASSING */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]