You've already forked lazarus-ccr
jvcllaz: Fix TJvDBTreeView and TJvDBLookupTreeView crashing the IDE when they are deleted from the form.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6871 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1581,7 +1581,9 @@ var
|
|||||||
strLength: Integer;
|
strLength: Integer;
|
||||||
HasChildren: Byte;
|
HasChildren: Byte;
|
||||||
begin
|
begin
|
||||||
if Items.Count > 0 then
|
// wp: not clear if this still works correctly: had to add "Assigned(Items)"
|
||||||
|
// to prevent crash when destroying
|
||||||
|
if Assigned(Items) and (Items.Count > 0) then
|
||||||
begin
|
begin
|
||||||
// save master values into stream
|
// save master values into stream
|
||||||
FMastersStream := TMemoryStream.Create;
|
FMastersStream := TMemoryStream.Create;
|
||||||
|
Reference in New Issue
Block a user