瀏覽代碼

* fpc_intf_assign_by_iid does not call Addref anymore, the QueryInterface call will increase the refcount

git-svn-id: trunk@4744 -
peter 19 年之前
父節點
當前提交
367958e154
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      rtl/inc/objpas.inc

+ 2 - 4
rtl/inc/objpas.inc

@@ -68,10 +68,8 @@
          if assigned(D) then
            IUnknown(D)._Release;
          if assigned(S) then
-         begin
-           IUnknown(S)._AddRef;
-           IUnknown(S).QueryInterface(iid, D);
-         end else
+           IUnknown(S).QueryInterface(iid, D)
+         else
            D := nil;
       end;