Author: thebeing
Date: Tue Apr 28 15:28:01 2015
New Revision: 38462

URL: http://svn.gna.org/viewcvs/gnustep?rev=38462&view=rev
Log:
Use -autorelease rather than -release when returning objects from a FIFO.
Fixes a bug where a returned reference would already be invalid because
the FIFO was the last owner of the object

Modified:
    libs/performance/trunk/ChangeLog
    libs/performance/trunk/GSFIFO.m

Modified: libs/performance/trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/performance/trunk/ChangeLog?rev=38462&r1=38461&r2=38462&view=diff
==============================================================================
--- libs/performance/trunk/ChangeLog    (original)
+++ libs/performance/trunk/ChangeLog    Tue Apr 28 15:28:01 2015
@@ -1,3 +1,9 @@
+2015-04-28 Niels Grewe <[email protected]>
+
+       * GSFIFO.m: Use -autorelease rather than -release when returning
+       objects from a FIFO. Fixes a bug where a returned reference would
+       already be invalid because the FIFO was the last owner of the object.
+
 2015-01-09 Richard Frith-Macdonald  <[email protected]>
 
        * GSFIFO.[hm]: add methods for working with objects and handling

Modified: libs/performance/trunk/GSFIFO.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/performance/trunk/GSFIFO.m?rev=38462&r1=38461&r2=38462&view=diff
==============================================================================
--- libs/performance/trunk/GSFIFO.m     (original)
+++ libs/performance/trunk/GSFIFO.m     Tue Apr 28 15:28:01 2015
@@ -406,7 +406,7 @@
   index = result = [self get: (void**)buf count: count shouldBlock: block];
   while (index-- > 0)
     {
-      [buf[index] release];
+      [buf[index] autorelease];
     }
   return result;
 }


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to