summaryrefslogtreecommitdiff
path: root/tests/context-test.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2011-11-12 09:31:10 -0500
committerDan Winship <danw@gnome.org>2011-11-12 09:31:10 -0500
commit2a03bc205b096bb9ecff1ea9dacd155cb16da1fb (patch)
tree5169baf3ea442dfd21d37245edee5f57fc60e982 /tests/context-test.c
parent226f6382496941a4baea6c1c0d22c8d3aed634a1 (diff)
downloadlibsoup-2a03bc205b096bb9ecff1ea9dacd155cb16da1fb.tar.gz
libsoup-2a03bc205b096bb9ecff1ea9dacd155cb16da1fb.tar.bz2
libsoup-2a03bc205b096bb9ecff1ea9dacd155cb16da1fb.zip
context-test: fix cleanup code to avoid a crash
Diffstat (limited to 'tests/context-test.c')
-rw-r--r--tests/context-test.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/context-test.c b/tests/context-test.c
index b72d200a..c1884de7 100644
--- a/tests/context-test.c
+++ b/tests/context-test.c
@@ -373,14 +373,15 @@ do_multicontext_test (int n)
errors++;
}
- g_main_loop_unref (loop1);
- g_main_loop_unref (loop2);
- g_main_context_unref (context1);
- g_main_context_unref (context2);
g_object_unref (msg1);
g_object_unref (msg2);
soup_test_session_abort_unref (session);
+
+ g_main_loop_unref (loop1);
+ g_main_loop_unref (loop2);
+ g_main_context_unref (context1);
+ g_main_context_unref (context2);
}
int