[tracker/wip/carlosg/property-paths: 2/6] tests: Shutdown data manager in tracker-sparql-test
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/property-paths: 2/6] tests: Shutdown data manager in tracker-sparql-test
- Date: Wed, 26 Dec 2018 12:24:10 +0000 (UTC)
commit 98f36a5a53c316a6b00e075a8293d9f25774dc0a
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Dec 25 20:33:45 2018 +0100
tests: Shutdown data manager in tracker-sparql-test
The TrackerDataManagers were not properly shutdown, thus leaking memory
and FDs. Adding more tests makes the latter noticeable.
tests/libtracker-data/tracker-sparql-test.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index 3982fc125..33a98fb11 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -361,6 +361,8 @@ test_sparql_query (TestInfo *test_info,
g_free (results_filename);
g_object_unref (test_schemas);
g_object_unref (data_location);
+
+ tracker_data_manager_shutdown (manager);
g_object_unref (manager);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]