mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-28 16:09:16 +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(GlobalDesignHook);
|
||||
FreeThenNil(LPKInfoCache);
|
||||
if IDEComponentPalette<>nil then
|
||||
if IDEComponentPalette<>nil then begin
|
||||
TComponentPalette(IDEComponentPalette).PageControl:=nil;
|
||||
IDEComponentPalette.Clear; // Clear references to TPkgComponent instances, which will be freed in "FreeThenNil(PkgBoss);"
|
||||
end;
|
||||
FreeThenNil(PkgBoss);
|
||||
FreeThenNil(IDEComponentPalette);
|
||||
FreeThenNil(IDECoolBar);
|
||||
|
Loading…
Reference in New Issue
Block a user