Author: rmottola
Date: Thu Jun 23 11:00:00 2016
New Revision: 39908
URL: http://svn.gna.org/viewcvs/gnustep?rev=39908&view=rev
Log:
cleanup and release text viewer
Modified:
apps/gworkspace/trunk/Inspector/Contents.m
Modified: apps/gworkspace/trunk/Inspector/Contents.m
URL:
http://svn.gna.org/viewcvs/gnustep/apps/gworkspace/trunk/Inspector/Contents.m?rev=39908&r1=39907&r2=39908&view=diff
==============================================================================
--- apps/gworkspace/trunk/Inspector/Contents.m (original)
+++ apps/gworkspace/trunk/Inspector/Contents.m Thu Jun 23 11:00:00 2016
@@ -52,6 +52,7 @@
RELEASE (currentPath);
RELEASE (genericView);
RELEASE (noContsView);
+ RELEASE (textViewer);
RELEASE (mainBox);
RELEASE (pboardImage);
@@ -113,15 +114,15 @@
Class principalClass = [bundle principalClass];
if ([principalClass conformsToProtocol:
@protocol(ContentViewersProtocol)]) {
- CREATE_AUTORELEASE_POOL (pool);
+ CREATE_AUTORELEASE_POOL (pool);
id vwr = [[principalClass alloc] initWithFrame: r inspector:
self];
[viewers addObject: vwr];
- RELEASE ((id)vwr);
+ [vwr release];
RELEASE (pool);
}
}
- }
+ }
}
}
@@ -668,9 +669,9 @@
value: [NSFont systemFontOfSize: 18]
range: range];
- [storage addAttribute: NSForegroundColorAttributeName
-
value: [NSColor darkGrayColor]
-
range: range];
+ [storage addAttribute: NSForegroundColorAttributeName
+ value: [NSColor darkGrayColor]
+ range: range];
RELEASE (attrstr);
RELEASE (style);
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs