设计器

优化
This commit is contained in:
JianjunLiu 2022-10-19 14:56:54 +08:00
parent c6b0a0bfde
commit 481ab38f4e
1 changed files with 10 additions and 0 deletions

View File

@ -1048,6 +1048,16 @@ type %s=class(%s)
begin
inherited;
end
function Recycling();override; //回收变量
begin
inherited;
ci := self.classinfo(); //将成员变量赋值为nil避免循环引用
for i,v in ci["members"] do
begin
if v["static"] then continue;
invoke(self,v["name"],nil);
end
end
end