mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-02 16:39:56 +01:00
codetools: fixed AddListToTreeOfPCodeXYPosition freeing old position, bug #15942
git-svn-id: trunk@24260 -
This commit is contained in:
parent
4f5b4cc836
commit
a0fc2ffad5
@ -294,8 +294,8 @@ begin
|
||||
NewCodePos:=CodePos;
|
||||
DestTree.Add(NewCodePos);
|
||||
end else if ClearList then begin
|
||||
// position alread exists and items should be deleted
|
||||
Dispose(NewCodePos);
|
||||
// position already exists and items should be deleted
|
||||
Dispose(CodePos);
|
||||
end;
|
||||
end;
|
||||
if ClearList then
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
{off $DEFINE CHECK_POSITION}
|
||||
{$IFDEF CHECK_POSITION}
|
||||
const CheckPostionClassName = 'xxTPage';
|
||||
const CheckPostionName = 'IDEOptionsDialog';
|
||||
const CheckPostionName = 'LazFindReplaceDialog';
|
||||
const CheckPostionParentName = 'xxxEnvVarsPage';
|
||||
|
||||
function CheckPosition(AControl: TControl): boolean;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user