[glib: 1/3] tests/unix-streams: Free the cancelled error on cancelled cancellable
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/3] tests/unix-streams: Free the cancelled error on cancelled cancellable
- Date: Mon, 10 Oct 2022 12:02:57 +0000 (UTC)
commit d40ef833e3c2c9a263ba9d8746fdef7ed820a8db
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Tue Sep 13 16:29:20 2022 +0200
tests/unix-streams: Free the cancelled error on cancelled cancellable
Helps with: https://gitlab.gnome.org/GNOME/glib/-/issues/333
gio/tests/unix-streams.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gio/tests/unix-streams.c b/gio/tests/unix-streams.c
index 407a67dbde..16cec26a26 100644
--- a/gio/tests/unix-streams.c
+++ b/gio/tests/unix-streams.c
@@ -147,6 +147,7 @@ main_thread_skipped (GObject *source, GAsyncResult *res, gpointer user_data)
if (g_cancellable_is_cancelled (main_cancel))
{
do_main_cancel (out);
+ g_clear_error (&err);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]