[tracker/dbus-fd-experiment] Steroids tests: properly free query results



commit a838124ac7d7f9f6a4576944cc405fa0a35640c1
Author: Adrien Bustany <abustany gnome org>
Date:   Thu Jun 3 18:04:53 2010 -0400

    Steroids tests: properly free query results

 tests/tracker-steroids/Makefile.am    |    3 ++-
 tests/tracker-steroids/tracker-test.c |    3 +++
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/tests/tracker-steroids/Makefile.am b/tests/tracker-steroids/Makefile.am
index d437a69..9653cf8 100644
--- a/tests/tracker-steroids/Makefile.am
+++ b/tests/tracker-steroids/Makefile.am
@@ -22,9 +22,10 @@ tracker_test_SOURCES = 							\
 
 tracker_test_LDADD = 							\
 	$(top_builddir)/src/libtracker-client/libtracker-client- TRACKER_API_VERSION@.la \
+	$(top_builddir)/src/libtracker-common/libtracker-common.la \
 	$(DBUS_LIBS)							\
 	$(GMODULE_LIBS)							\
 	$(GTHREAD_LIBS)							\
 	$(GIO_LIBS)							\
 	$(GLIB2_LIBS)							\
-	$(GCOV_LIBS)
\ No newline at end of file
+	$(GCOV_LIBS)
diff --git a/tests/tracker-steroids/tracker-test.c b/tests/tracker-steroids/tracker-test.c
index 927bd72..ccdb7be 100644
--- a/tests/tracker-steroids/tracker-test.c
+++ b/tests/tracker-steroids/tracker-test.c
@@ -18,6 +18,7 @@
  */
 #include <glib.h>
 #include <libtracker-client/tracker.h>
+#include <libtracker-common/tracker-common.h>
 #include <stdlib.h>
 #include <string.h>
 
@@ -185,6 +186,7 @@ test_tracker_sparql_query_iterate ()
 	}
 
 	tracker_result_iterator_free (iterator);
+	tracker_dbus_results_ptr_array_free (&r1);
 }
 
 /* Runs the same query using the iterate and traditional interface, and compare
@@ -218,6 +220,7 @@ test_tracker_sparql_query_iterate_largerow ()
 	}
 
 	tracker_result_iterator_free (iterator);
+	tracker_dbus_results_ptr_array_free (&r1);
 }
 
 /* Runs an invalid query */



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