浏览代码

* release allocated object at the end

git-svn-id: branches/objc@13623 -
Jonas Maebe 16 年之前
父节点
当前提交
ed38015758
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      tests/test/tobjc1.pp
  2. 1 0
      tests/test/tobjc12.pp

+ 1 - 0
tests/test/tobjc1.pp

@@ -21,4 +21,5 @@ begin
     halt(3);
     halt(3);
   if (a.superclass<>nil) then
   if (a.superclass<>nil) then
     halt(4);
     halt(4);
+  a.release;
 end.
 end.

+ 1 - 0
tests/test/tobjc12.pp

@@ -20,4 +20,5 @@ begin
       writeln('error: NSObject.Class <> NSObjectInstance.Class');
       writeln('error: NSObject.Class <> NSObjectInstance.Class');
       halt(1);
       halt(1);
     end;
     end;
+  a.release;
 end.
 end.