Author: rmottola Date: Wed Nov 5 11:01:07 2014 New Revision: 38161 URL: http://svn.gna.org/viewcvs/gnustep?rev=38161&view=rev Log: properly allocate NSMutableSets as required by iVar type
Modified: libs/simplewebkit/trunk/SWKBrowser/MyDocument.m Modified: libs/simplewebkit/trunk/SWKBrowser/MyDocument.m URL: http://svn.gna.org/viewcvs/gnustep/libs/simplewebkit/trunk/SWKBrowser/MyDocument.m?rev=38161&r1=38160&r2=38161&view=diff ============================================================================== --- libs/simplewebkit/trunk/SWKBrowser/MyDocument.m (original) +++ libs/simplewebkit/trunk/SWKBrowser/MyDocument.m Wed Nov 5 11:01:07 2014 @@ -712,7 +712,7 @@ if(item == nil) NSLog(@"oitem %@ %p", oitem, oitem); else - [styleNodes addObject:item]; + [styleNodes addObject:item]; // retain them whatever happens return item; } if(outlineView == domTree) @@ -751,7 +751,7 @@ if(item == nil) { [styleNodes release]; - styleNodes=[[NSMutableArray alloc] initWithCapacity:30]; + styleNodes=[[NSMutableSet alloc] initWithCapacity:30]; item=[self styleSheet]; } if([item isKindOfClass:[NSString class]]) @@ -769,7 +769,7 @@ if (item == nil) { [domNodes release]; - domNodes=[[NSMutableArray alloc] initWithCapacity:30]; + domNodes=[[NSMutableSet alloc] initWithCapacity:30]; return 1; } else _______________________________________________ Gnustep-cvs mailing list Gnustep-cvs@gna.org https://mail.gna.org/listinfo/gnustep-cvs