summaryrefslogtreecommitdiff
path: root/tests/asynchronous/bug793158.c-expected
diff options
context:
space:
mode:
Diffstat (limited to 'tests/asynchronous/bug793158.c-expected')
-rw-r--r--tests/asynchronous/bug793158.c-expected16
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/asynchronous/bug793158.c-expected b/tests/asynchronous/bug793158.c-expected
index 218575392..aa8ffb78b 100644
--- a/tests/asynchronous/bug793158.c-expected
+++ b/tests/asynchronous/bug793158.c-expected
@@ -144,15 +144,17 @@ foo_bar_co (FooBarData* _data_)
g_assert_not_reached ();
}
_state_0:
- _data_->result = TRUE;
- g_task_return_pointer (_data_->_async_result, _data_, NULL);
- if (_data_->_state_ != 0) {
- while (!g_task_get_completed (_data_->_async_result)) {
- g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
+ {
+ _data_->result = TRUE;
+ g_task_return_pointer (_data_->_async_result, _data_, NULL);
+ if (_data_->_state_ != 0) {
+ while (!g_task_get_completed (_data_->_async_result)) {
+ g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
+ }
}
+ g_object_unref (_data_->_async_result);
+ return FALSE;
}
- g_object_unref (_data_->_async_result);
- return FALSE;
}
Foo*