[libsoup] context-test: fix cleanup code to avoid a crash
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] context-test: fix cleanup code to avoid a crash
- Date: Sat, 12 Nov 2011 14:31:29 +0000 (UTC)
commit 2a03bc205b096bb9ecff1ea9dacd155cb16da1fb
Author: Dan Winship <danw gnome org>
Date: Sat Nov 12 09:31:10 2011 -0500
context-test: fix cleanup code to avoid a crash
tests/context-test.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/tests/context-test.c b/tests/context-test.c
index b72d200..c1884de 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]