diff --git a/gio/gthreadedresolver.c b/gio/gthreadedresolver.c index f75c93404..615e06341 100644 --- a/gio/gthreadedresolver.c +++ b/gio/gthreadedresolver.c @@ -1592,6 +1592,7 @@ threaded_resolver_worker_cb (gpointer task_data, } g_clear_pointer (&addresses, g_resolver_free_addresses); + g_clear_error (&local_error); } break; case LOOKUP_BY_ADDRESS: @@ -1613,6 +1614,7 @@ threaded_resolver_worker_cb (gpointer task_data, } g_clear_pointer (&name, g_free); + g_clear_error (&local_error); } break; case LOOKUP_RECORDS: @@ -1635,6 +1637,7 @@ threaded_resolver_worker_cb (gpointer task_data, } g_clear_pointer (&records, free_records); + g_clear_error (&local_error); } break; default: