Ignoring the warning of uncaught error in async methods resulted in
leaking a reference to the scopes GLib.AsyncResult.
https://bugzilla.gnome.org/show_bug.cgi?id=641171
ccode.add_return (new CCodeConstant ("NULL"));
}
} else if (is_in_coroutine ()) {
+ var async_result_expr = new CCodeMemberAccess.pointer (new CCodeIdentifier ("_data_"), "_async_result");
+ var unref = new CCodeFunctionCall (new CCodeIdentifier ("g_object_unref"));
+ unref.add_argument (async_result_expr);
+ ccode.add_expression (unref);
ccode.add_return (new CCodeConstant ("FALSE"));
} else if (current_return_type != null) {
return_default_value (current_return_type);