1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-23 21:54:53 +02:00

avfilter/vsrc_gfxcapture: fix leaking all callback handlers

Fixes #20537
This commit is contained in:
Timo Rothenpieler
2025-09-17 21:31:56 +02:00
parent 1849068c65
commit c4e537793b

View File

@@ -159,9 +159,9 @@ private:
template<class Iface, typename... Args, typename F>
static Microsoft::WRL::ComPtr<Iface> create_cb_handler(F&& cb_func)
{
return Microsoft::WRL::ComPtr<Iface>(
new FFTypedCBHandler<Iface, F, Args...>(std::forward<F>(cb_func))
);
Microsoft::WRL::ComPtr<Iface> res;
res.Attach(new FFTypedCBHandler<Iface, F, Args...>(std::forward<F>(cb_func)));
return res;
}
/******************************************