mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 10:29:29 +02:00
fpvectorial: Fix memory leak due to document styles not being destroyed, patch by Andrzej Kilijanski (issue #0031356).
git-svn-id: trunk@54173 -
This commit is contained in:
parent
ce7b128603
commit
1e8c8bdc1a
@ -10654,6 +10654,14 @@ var
|
||||
i: integer;
|
||||
p: TvPage;
|
||||
begin
|
||||
for i:=0 to FStyles.Count-1 do
|
||||
TvStyle(FStyles[i]).Free;
|
||||
FStyles.Clear;
|
||||
|
||||
for i:=0 to FListStyles.Count-1 do
|
||||
TvListStyle(FListStyles[i]).Free;
|
||||
FListStyles.Clear;
|
||||
|
||||
for i:=FPages.Count-1 downto 0 do
|
||||
begin
|
||||
p := TvPage(FPages[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user