浏览代码

Removed unnecessary retain/release.

woollybah 5 年之前
父节点
当前提交
2828f1f878
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      reflection.mod/reflection.c

+ 0 - 3
reflection.mod/reflection.c

@@ -102,13 +102,10 @@ void bbRefPushObject( BBObject **p,BBObject *t ){
 }
 
 void bbRefInitObject( BBObject **p,BBObject *t ){
-	BBRETAIN( t );
 	*p=t;
 }
 
 void bbRefAssignObject( BBObject **p,BBObject *t ){
-	BBRETAIN( t );
-	BBRELEASE( *p );
 	*p=t;
 }