summaryrefslogtreecommitdiffstats
path: root/tests/test-io-task.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-io-task.c')
-rw-r--r--tests/test-io-task.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test-io-task.c b/tests/test-io-task.c
index c8a3813d49..85e7a98da5 100644
--- a/tests/test-io-task.c
+++ b/tests/test-io-task.c
@@ -240,9 +240,7 @@ static void test_task_thread_failure(void)
object_unref(obj);
g_assert(data.source == obj);
- g_assert(data.err != NULL);
-
- error_free(data.err);
+ error_free_or_abort(&data.err);
self = g_thread_self();