Author: mlytwyn
Date: Thu Mar 23 21:37:08 2017
New Revision: 40411

URL: http://svn.gna.org/viewcvs/gnustep?rev=40411&view=rev
Log:
Retain/release/autorelease fixes

Modified:
    libs/gui/branches/gnustep_testplant_branch/Source/GSXib5KeyedUnarchiver.m

Modified: 
libs/gui/branches/gnustep_testplant_branch/Source/GSXib5KeyedUnarchiver.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/GSXib5KeyedUnarchiver.m?rev=40411&r1=40410&r2=40411&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/GSXib5KeyedUnarchiver.m   
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/GSXib5KeyedUnarchiver.m   
Thu Mar 23 21:37:08 2017
@@ -1289,7 +1289,7 @@
       [object setFont: font];
     }
   
-  return object;
+  return AUTORELEASE(object);
 }
 
 - (id)decodeBorderTypeForElement: (GSXib5Element*)element
@@ -1843,7 +1843,7 @@
   [object setNextKeyView: (NSView*)headerView];
   [object setDocumentView: (NSView*)headerView];
   
-  return object;
+  return AUTORELEASE(object);
 }
 
 - (id) decodeScrollClassFlagsForElement: (GSXib5Element*)element
@@ -2086,7 +2086,7 @@
   [object sendActionOn: NSLeftMouseUpMask];
   [object setEnabled: YES];
   
-  return object;
+  return AUTORELEASE(object);
 }
 
 - (id)decodeMinimumColumnWidthForElement: (GSXib5Element*)element
@@ -2189,6 +2189,7 @@
           NSFont       *font        = [self decodeObjectForKey: @"font"];
           NSDictionary *attributes  = [NSDictionary dictionaryWithObject: font 
forKey: NSFontAttributeName];
           object                    = [[NSAttributedString alloc] 
initWithString: object attributes: attributes];
+          AUTORELEASE(object);
         }
 #endif
       


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

Reply via email to