mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-05 17:39:36 +01:00
TreeFilterEdit: release also the idle handler when releasing the filtered TreeView
git-svn-id: trunk@35227 -
This commit is contained in:
parent
1829efd0bd
commit
9ec8da7c35
@ -382,6 +382,8 @@ begin
|
|||||||
inherited Notification(AComponent, Operation);
|
inherited Notification(AComponent, Operation);
|
||||||
if (Operation=opRemove) and (FilteredTreeview=AComponent) then
|
if (Operation=opRemove) and (FilteredTreeview=AComponent) then
|
||||||
begin
|
begin
|
||||||
|
IdleConnected:=False;
|
||||||
|
fNeedUpdate:=False;
|
||||||
fFilteredTreeview.RemoveHandlerOnBeforeDestruction(@OnBeforeTreeDestroy);
|
fFilteredTreeview.RemoveHandlerOnBeforeDestruction(@OnBeforeTreeDestroy);
|
||||||
fFilteredTreeview:=nil;
|
fFilteredTreeview:=nil;
|
||||||
FreeAndNil(fBranches);
|
FreeAndNil(fBranches);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user