Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix a compiler warning and a memory leak

  • Loading branch information...
commit a1ac8778cb236a1b1620b1ea997c184aae740e3d 1 parent 64ec0d5
@ddribin ddribin authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  JRLog.m
View
3  JRLog.m
@@ -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];
Please sign in to comment.
Something went wrong with that request. Please try again.