You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following two lines of code in the function UpdateTreeFromNode in the unit LJV.Forms.Main may cause memory leaks:
treeNode^.NodeName:=TJSONObject(AJSONData).Names[index];
treeNode^.NodePath:= treeNode^.NodePath + '.' + treeNode^.NodeName;.
lt seems that assigning dynamically allocated string objects to treeNode·.NodeName without releasing the originalobjects may lead to memory leaks. However,l don't know how to modify it.
SetLength(treeNode^.NodeName, 0); SetLength(treeNode^.NodePath, 0); can solve the memory overflow problem, but it will lose the values of NodeName and NodePath.
There are still more memory leak issues present. Switching from test1.json to test2.json increases memory usage by 0.1MB.
The text was updated successfully, but these errors were encountered: