amjadtbssm / DirectShowDelphi

MS Direct Show Package for Delphi
0 stars 1 forks source link

Resource Leak in TBCSource #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
2.3.4

Please provide any additional information below.

There is a resource leak in the source. FStateLock variable in TBCSource
was not destroyed in the Destroy function.

Original issue reported on code.google.com by hub...@gmail.com on 24 Mar 2010 at 1:33

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
FStateLock is destroyed in inherited class destructor

TBCBaseFilter.destroy;
begin
  FFilterName := '';
  FClock := nil;
  FLock.Free;            <----------------
  inherited;
end;

Original comment by t...@heroltice.net on 3 May 2010 at 8:07