Avoid a second round trip via EndEdit() and Destroy() after the editor was unfocused. Lead to an access violation in the second Destroy() call. Fixes issue #1304.

This commit is contained in:
Ansgar Becker
2009-08-23 18:23:39 +00:00
parent a11b60cbd4
commit 8cfb99e0c6

View File

@@ -849,9 +849,8 @@ destructor TInplaceEditorLink.Destroy;
begin
if Assigned(FTextEditor) then
FTextEditor.Release;
FEdit.Free;
FButton.Free;
FPanel.Free;
if not (csDestroying in FPanel.ComponentState) then
FPanel.Free;
inherited;
end;