From f7ad30e724411492b10f213ea9e7759979dfbb62 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Sun, 13 Jul 2025 22:33:54 +0800 Subject: [PATCH] fix(tenpayv3): leak dispose --- .../ExtendedSDK/Global/WechatTenpayGlobalClient.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/ExtendedSDK/Global/WechatTenpayGlobalClient.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/ExtendedSDK/Global/WechatTenpayGlobalClient.cs index 9cfae973..a26c639b 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/ExtendedSDK/Global/WechatTenpayGlobalClient.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/ExtendedSDK/Global/WechatTenpayGlobalClient.cs @@ -155,5 +155,15 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.ExtendedSDK.Global return result; } + + protected override void Dispose(bool disposing) + { + base.Dispose(disposing); + + if (disposing) + { + ProxyClient.Dispose(); + } + } } }