aboutsummaryrefslogtreecommitdiff
path: root/tests/test-gtk-parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-gtk-parser.c')
-rw-r--r--tests/test-gtk-parser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test-gtk-parser.c b/tests/test-gtk-parser.c
index 87b0a7f..afd6194 100644
--- a/tests/test-gtk-parser.c
+++ b/tests/test-gtk-parser.c
@@ -28,6 +28,8 @@ test_parser_runs (void)
{
GtkWidget * gmi = gtk_menu_item_new_with_label("Test Item");
g_assert(gmi != NULL);
+ g_object_ref_sink(gmi);
+
DbusmenuMenuitem * mi = dbusmenu_gtk_parse_menu_structure(gmi);
g_assert(mi != NULL);