Explorar o código

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

git-svn-id: trunk@4744 -
peter %!s(int64=19) %!d(string=hai) anos
pai
achega
367958e154
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  1. 2 4
      rtl/inc/objpas.inc

+ 2 - 4
rtl/inc/objpas.inc

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