[epiphany] Fix leaks in ephy-history-test



commit 2c4274df1e4812e9d9fcbff5e7fe4ab4d87a9120
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Mon Jul 16 20:15:37 2018 -0500

    Fix leaks in ephy-history-test

 tests/ephy-history-test.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/tests/ephy-history-test.c b/tests/ephy-history-test.c
index 33d66a200..0fa8040dd 100644
--- a/tests/ephy-history-test.c
+++ b/tests/ephy-history-test.c
@@ -397,6 +397,7 @@ test_complex_url_query (void)
   GList *visits;
 
   visits = create_visits_for_complex_tests ();
+  g_free (temporary_file);
 
   ephy_history_service_add_visits (service, visits, NULL, perform_complex_url_query, NULL);
 
@@ -437,6 +438,7 @@ test_complex_url_query_with_time_range (void)
   GList *visits;
 
   visits = create_visits_for_complex_tests ();
+  g_free (temporary_file);
 
   ephy_history_service_add_visits (service, visits, NULL, perform_complex_url_query_with_time_range, NULL);
 
@@ -487,6 +489,7 @@ test_clear (void)
 
   ephy_history_service_add_visits (service, visits, NULL, NULL, NULL);
   ephy_history_service_clear (service, NULL, perform_query_after_clear, NULL);
+  g_free (temporary_file);
 
   gtk_main ();
 }


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