Browse Source

* Patch for referenceinterface by C. Peterson to properly add to the freenotification list, Mantis #20808

git-svn-id: trunk@20616 -
marco 13 years ago
parent
commit
05999225a3
1 changed files with 4 additions and 1 deletions
  1. 4 1
      rtl/objpas/classes/compon.inc

+ 4 - 1
rtl/objpas/classes/compon.inc

@@ -78,7 +78,10 @@ begin
  if assigned(intf) and supports(intf,IInterfaceComponentReference,ref) then
  if assigned(intf) and supports(intf,IInterfaceComponentReference,ref) then
    begin
    begin
     comp:=ref.getcomponent;
     comp:=ref.getcomponent;
-    comp.notification(self,op); 
+    if op = opInsert then
+      comp.FreeNotification(Self)
+    else
+      comp.RemoveFreeNotification(Self); 
    end;
    end;
 end;
 end;