Author: mlytwyn Date: Fri Jan 15 02:39:49 2016 New Revision: 39278 URL: http://svn.gna.org/viewcvs/gnustep?rev=39278&view=rev Log: Use proper memory macros AUTORELEASE/RETAIN
Modified: libs/base/branches/gnustep_testplant_branch/Source/NSDistantObject.m Modified: libs/base/branches/gnustep_testplant_branch/Source/NSDistantObject.m URL: http://svn.gna.org/viewcvs/gnustep/libs/base/branches/gnustep_testplant_branch/Source/NSDistantObject.m?rev=39278&r1=39277&r2=39278&view=diff ============================================================================== --- libs/base/branches/gnustep_testplant_branch/Source/NSDistantObject.m (original) +++ libs/base/branches/gnustep_testplant_branch/Source/NSDistantObject.m Fri Jan 15 02:39:49 2016 @@ -605,7 +605,9 @@ NS_DURING { - [[self retain] autorelease]; + // If the forward invocation fails there are times this object + // is already free'd by the time the exception handler executes... + AUTORELEASE(RETAIN(self)); [_connection forwardInvocation: anInvocation forProxy: self]; } NS_HANDLER _______________________________________________ Gnustep-cvs mailing list Gnustep-cvs@gna.org https://mail.gna.org/listinfo/gnustep-cvs