RTTIControls fix SIGSEGV when destroying controls. Issue #20020, patch from Flávio Etrusco

git-svn-id: trunk@32013 -
This commit is contained in:
juha 2011-08-19 21:33:30 +00:00
parent 2338d7ce64
commit d0be101ab4

View File

@ -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);