mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user