CVSROOT:        /sources/dotgnu-pnet
Module name:    pnetlib
Branch:         
Changes by:     Heiko Weiss <[EMAIL PROTECTED]> 06/05/05 14:39:08

Modified files:
        .              : ChangeLog 
        runtime/System : MulticastDelegate.cs 

Log message:
        fixed a big memory leak.
        
        please check my changes!

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/dotgnu-pnet/pnetlib/ChangeLog.diff?tr1=1.2386&tr2=1.2387&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/dotgnu-pnet/pnetlib/runtime/System/MulticastDelegate.cs.diff?tr1=1.9&tr2=1.10&r1=text&r2=text

Patches:
Index: pnetlib/ChangeLog
diff -u pnetlib/ChangeLog:1.2386 pnetlib/ChangeLog:1.2387
--- pnetlib/ChangeLog:1.2386    Thu May  4 09:44:26 2006
+++ pnetlib/ChangeLog   Fri May  5 14:39:08 2006
@@ -1,3 +1,7 @@
+2006-05-05  Heiko Weiss  <[EMAIL PROTECTED]>
+
+       * runtime/System/MulticastDelegate.cs: fixed a big memory leak.
+
 2006-05-04  Heiko Weiss  <[EMAIL PROTECTED]>
 
        * System.Drawing/Graphics.cs: added a workaround for DrawString 
Index: pnetlib/runtime/System/MulticastDelegate.cs
diff -u pnetlib/runtime/System/MulticastDelegate.cs:1.9 
pnetlib/runtime/System/MulticastDelegate.cs:1.10
--- pnetlib/runtime/System/MulticastDelegate.cs:1.9     Sun Jan 25 23:23:53 2004
+++ pnetlib/runtime/System/MulticastDelegate.cs Fri May  5 14:39:08 2006
@@ -156,6 +156,15 @@
                                {
                                        list = list.prev;
                                        d = d.prev;
+                                       if(((Object)d) == null)
+                                       {
+                                               return true;
+                                       }
+                                       if(((Object)list) == null)
+                                       {
+                                               return false;
+                                       }
+                                       /* brubbel: is here the memory leak ?
                                        if(((Object)list) == null)
                                        {
                                                return (((Object)d) == null);
@@ -164,6 +173,7 @@
                                        {
                                                return false;
                                        }
+                                       */
                                }
                                return false;
                        }


_______________________________________________
dotgnu-pnet-commits mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/dotgnu-pnet-commits

Reply via email to