dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dotgnu-pnet-commits] pnetlib ./ChangeLog runtime/System/MulticastDel...


From: Heiko Weiss
Subject: [dotgnu-pnet-commits] pnetlib ./ChangeLog runtime/System/MulticastDel...
Date: Fri, 05 May 2006 14:39:09 +0000

CVSROOT:        /sources/dotgnu-pnet
Module name:    pnetlib
Branch:         
Changes by:     Heiko Weiss <address@hidden>    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  <address@hidden>
+
+       * runtime/System/MulticastDelegate.cs: fixed a big memory leak.
+
 2006-05-04  Heiko Weiss  <address@hidden>
 
        * 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;
                        }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]