[FFmpeg-trac] #10162(avfilter:new): Handles leak when loading avfilter-7.dll using Delphi
FFmpeg
trac at avcodec.org
Wed Feb 1 13:34:51 EET 2023
#10162: Handles leak when loading avfilter-7.dll using Delphi
-------------------------------------+-------------------------------------
Reporter: Arcardia | Type: defect
Status: new | Priority: normal
Component: avfilter | Version:
Keywords: avfilter | unspecified
delphi memory leak handles | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Hi,
i currently have a problem loading/unloading the avfilter-7.dll from
ffmpeg 4.22 (x86) using Delphi 2007 (also with Delphi XE3..same problem)
Each loading / unloading process of the library causes a handles leak in
Windows x64 Pro for which I currently have no explanation or solution. I
have already tried to upgrade to a newer version of the DLL but the leak
is even worse, strangely, a very old version (avfilter-2.dll and
avfilter-6.dll) is not affected by this
{{{
dllLHandle :=
LoadLibrary(PAnsiChar('c:\Windows\SysWow64\AVFilter-7.dll'));
if dllLHandle<>0 then begin
FreeLibrary(dllLHandle);
dllLHandle:= 0;
end;
}}}
The code above causes an additional leak with each call
Is there something wrong, have I forgotten something?
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10162>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list