[tracker: 13/21] tests/libtracker-data: Fix memory leaks



commit f0bad4611d5053d04800317dcc0ab01fc925877a
Author: Andrea Azzarone <andrea azzarone canonical com>
Date:   Wed Jan 23 19:31:43 2019 +0000

    tests/libtracker-data: Fix memory leaks

 tests/libtracker-data/tracker-backup-test.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/tests/libtracker-data/tracker-backup-test.c b/tests/libtracker-data/tracker-backup-test.c
index d38fb235b..dd3a9d998 100644
--- a/tests/libtracker-data/tracker-backup-test.c
+++ b/tests/libtracker-data/tracker-backup-test.c
@@ -216,6 +216,8 @@ test_backup_and_restore_helper (const gchar *db_location,
 
        g_assert_cmpint (backup_calls, ==, 1);
 
+       g_free (data_prefix);
+       g_object_unref (data_location);
        g_object_unref (manager);
 }
 


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