mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 00:58:04 +02:00
IDE Scout: Fix a memory leak. RemoveHandler...() threw an AV because this plugin form is destroyed too late when Lazarus closes. FSearchItems was not freed.
This commit is contained in:
parent
d51777fee4
commit
184e26164e
@ -544,14 +544,7 @@ end;
|
||||
|
||||
procedure TIDEScoutForm.FormDestroy(Sender: TObject);
|
||||
begin
|
||||
With IDEEnvironmentOptions do
|
||||
begin
|
||||
RemoveHandlerAddToRecentOpenFiles(@PackageOpened);
|
||||
RemoveHandlerAddToRecentProjectFiles(@FileOpened);
|
||||
RemoveHandlerAddToRecentPackageFiles(@ProjectOpened);
|
||||
end;
|
||||
FreeAndNil(FSearchItems);
|
||||
ScoutForm:=Nil;
|
||||
end;
|
||||
|
||||
procedure TIDEScoutForm.FormShow(Sender: TObject);
|
||||
|
Loading…
Reference in New Issue
Block a user