mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-14 09:39:07 +02:00
RTTIControls fix SIGSEGV when destroying controls. Issue #20020, patch from Flávio Etrusco
git-svn-id: trunk@32013 -
This commit is contained in:
parent
2338d7ce64
commit
d0be101ab4
@ -1643,13 +1643,7 @@ begin
|
||||
InvalidateEditor;
|
||||
if (Application<>nil) and FIdleHandlerConnected then
|
||||
Application.RemoveOnIdleHandler(@OnApplicationIdle);
|
||||
if FLinkNotifier<>nil then begin
|
||||
if FTIObject is TComponent then begin
|
||||
TComponent(FTIObject).RemoveFreeNotification(FLinkNotifier);
|
||||
FTIObject:=nil;
|
||||
end;
|
||||
FreeThenNil(FLinkNotifier);
|
||||
end;
|
||||
FreeThenNil(FLinkNotifier);
|
||||
FreeThenNil(FAliasValues);
|
||||
FreeThenNil(FHook);
|
||||
FreeThenNil(FCollectedValues);
|
||||
|
Loading…
Reference in New Issue
Block a user