aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-09-19 13:13:49 -0500
committerTed Gould <ted@gould.cx>2011-09-19 13:13:49 -0500
commit0b5f7ed8fcaee4b32db7a1deed1b65ff77688551 (patch)
tree51c647d61a4ce3f6c6d20dee0a4a6d41c1c73bab
parent232a1e5836bf9394b93b586788811f1b3d1a26ab (diff)
downloadlibdbusmenu-0b5f7ed8fcaee4b32db7a1deed1b65ff77688551.tar.gz
libdbusmenu-0b5f7ed8fcaee4b32db7a1deed1b65ff77688551.tar.bz2
libdbusmenu-0b5f7ed8fcaee4b32db7a1deed1b65ff77688551.zip
Making sure to sink the reference before parsing it.
-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);