You've already forked FFmpeg
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:
@@ -159,9 +159,9 @@ private:
|
|||||||
template<class Iface, typename... Args, typename F>
|
template<class Iface, typename... Args, typename F>
|
||||||
static Microsoft::WRL::ComPtr<Iface> create_cb_handler(F&& cb_func)
|
static Microsoft::WRL::ComPtr<Iface> create_cb_handler(F&& cb_func)
|
||||||
{
|
{
|
||||||
return Microsoft::WRL::ComPtr<Iface>(
|
Microsoft::WRL::ComPtr<Iface> res;
|
||||||
new FFTypedCBHandler<Iface, F, Args...>(std::forward<F>(cb_func))
|
res.Attach(new FFTypedCBHandler<Iface, F, Args...>(std::forward<F>(cb_func)));
|
||||||
);
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************
|
/******************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user