Commit 24fa3617 authored by Andrea Azzarone's avatar Andrea Azzarone 🚴

tests/libtracker-miner: Fix memory leaks

parent 6f01baa5
......@@ -130,6 +130,11 @@ test_priority_queue_find (void)
g_assert_cmpstr (result, !=, NULL);
g_assert_cmpint (priority, ==, 10);
while (!tracker_priority_queue_is_empty (queue)) {
gchar *text = (gchar *) tracker_priority_queue_pop (queue, NULL);
g_free (text);
}
tracker_priority_queue_unref (queue);
}
......@@ -157,6 +162,11 @@ test_priority_queue_foreach (void)
g_assert_cmpint (counter, ==, 3);
while (!tracker_priority_queue_is_empty (queue)) {
gchar *text = (gchar *) tracker_priority_queue_pop (queue, NULL);
g_free (text);
}
tracker_priority_queue_unref (queue);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment