From 1927e550e2c5d146a00af713f1b8bea79b6cb6bf Mon Sep 17 00:00:00 2001 From: qydysky <32743305+qydysky@users.noreply.github.com> Date: Thu, 2 Mar 2023 03:15:46 +0800 Subject: [PATCH] =?utf8?q?Fix=20gtk=E8=BF=9E=E6=8E=A5=E6=B1=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Reply/gtk.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Reply/gtk.go b/Reply/gtk.go index d066548..a167b9f 100644 --- a/Reply/gtk.go +++ b/Reply/gtk.go @@ -625,9 +625,8 @@ func Gtk_danmu() { if src == "" { return } - reqi := c.C.ReqPool.Get() - defer c.C.ReqPool.Put(reqi) - req := reqi.Item.(*reqf.Req) + req := c.C.ReqPool.Get() + defer c.C.ReqPool.Put(req) if e := req.Reqf(reqf.Rval{ Url: src, SaveToPath: Gtk_img_path + `/` + uid, -- 2.39.2