tests: Various minor leak fixes in the GIO tests

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall
2018-06-27 09:57:21 +01:00
parent 68526565f4
commit 93b519b104
10 changed files with 31 additions and 4 deletions

View File

@@ -178,6 +178,7 @@ main_thread_read (GObject *source, GAsyncResult *res, gpointer user_data)
if (g_cancellable_is_cancelled (main_cancel))
{
do_main_cancel (out);
g_clear_error (&err);
return;
}
@@ -214,6 +215,7 @@ main_thread_wrote (GObject *source, GAsyncResult *res, gpointer user_data)
if (g_cancellable_is_cancelled (main_cancel))
{
do_main_cancel (out);
g_clear_error (&err);
return;
}