Permalink
Browse files

Fix a compiler warning and a memory leak

  • Loading branch information...
ddribin committed Jul 17, 2007
1 parent 64ec0d5 commit a1ac8778cb236a1b1620b1ea997c184aae740e3d
Showing with 2 additions and 1 deletion.
  1. +2 −1 JRLog.m
View
@@ -35,6 +35,7 @@ @interface JRLogOutput : NSObject <JRLogLogger> {
id<JRLogDestinationDO> destination;
}
+ (id)sharedOutput;
+- (void)destinationDOAvailable:(NSNotification*)notification_;
@end
@implementation JRLogOutput
+ (id)sharedOutput {
@@ -204,7 +205,7 @@ BOOL IsJRLogLevelActive(id self_, JRLogLevel callerLevel_) {
//
va_list args;
va_start(args, format_);
- NSString *message = [[NSString alloc] initWithFormat:format_ arguments:args];
+ NSString *message = [[[NSString alloc] initWithFormat:format_ arguments:args] autorelease];
va_end(args);
id<JRLogLogger> logger = [JRLogOutput JRLogLogger];

0 comments on commit a1ac877

Please sign in to comment.