[gtk+] treeview tests: Clean up after each test
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] treeview tests: Clean up after each test
- Date: Sat, 30 Aug 2014 05:47:22 +0000 (UTC)
commit c71d1b9664289d302294bcec0b8a4b3a76d22c65
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Aug 30 01:46:06 2014 -0400
treeview tests: Clean up after each test
It is not good form to leak in testcases.
testsuite/gtk/treeview.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/gtk/treeview.c b/testsuite/gtk/treeview.c
index f1e0af9..5f804ab 100644
--- a/testsuite/gtk/treeview.c
+++ b/testsuite/gtk/treeview.c
@@ -67,6 +67,8 @@ test_bug_546005 (void)
gtk_tree_view_set_cursor (GTK_TREE_VIEW (view), path,
NULL, FALSE);
gtk_tree_path_free (path);
+
+ gtk_widget_destroy (view);
}
static void
@@ -96,6 +98,8 @@ test_bug_539377 (void)
NULL, NULL, NULL) == FALSE);
g_assert (gtk_tree_view_get_dest_row_at_pos (GTK_TREE_VIEW (view), 10, 10,
&path, NULL) == FALSE);
+
+ gtk_widget_destroy (view);
}
static void
@@ -150,6 +154,8 @@ test_select_collapsed_row (void)
g_return_if_fail (gtk_tree_selection_count_selected_rows (selection) == 1);
gtk_tree_path_free (path);
+
+ gtk_widget_destroy (view);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]