mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-30 01:49:15 +02:00
MainIde: fix dangling pointer in component-palette. Issue #0033895
git-svn-id: trunk@59878 -
This commit is contained in:
parent
94284ccbe5
commit
9038532f9f
@ -1690,8 +1690,10 @@ begin
|
|||||||
FreeThenNil(IDEQuickFixes);
|
FreeThenNil(IDEQuickFixes);
|
||||||
FreeThenNil(GlobalDesignHook);
|
FreeThenNil(GlobalDesignHook);
|
||||||
FreeThenNil(LPKInfoCache);
|
FreeThenNil(LPKInfoCache);
|
||||||
if IDEComponentPalette<>nil then
|
if IDEComponentPalette<>nil then begin
|
||||||
TComponentPalette(IDEComponentPalette).PageControl:=nil;
|
TComponentPalette(IDEComponentPalette).PageControl:=nil;
|
||||||
|
IDEComponentPalette.Clear; // Clear references to TPkgComponent instances, which will be freed in "FreeThenNil(PkgBoss);"
|
||||||
|
end;
|
||||||
FreeThenNil(PkgBoss);
|
FreeThenNil(PkgBoss);
|
||||||
FreeThenNil(IDEComponentPalette);
|
FreeThenNil(IDEComponentPalette);
|
||||||
FreeThenNil(IDECoolBar);
|
FreeThenNil(IDECoolBar);
|
||||||
|
Loading…
Reference in New Issue
Block a user