summaryrefslogtreecommitdiff
path: root/platform/darwin/log_nslog.mm
diff options
context:
space:
mode:
Diffstat (limited to 'platform/darwin/log_nslog.mm')
-rw-r--r--platform/darwin/log_nslog.mm2
1 files changed, 0 insertions, 2 deletions
diff --git a/platform/darwin/log_nslog.mm b/platform/darwin/log_nslog.mm
index ea5fddf0b9..a82d78a01f 100644
--- a/platform/darwin/log_nslog.mm
+++ b/platform/darwin/log_nslog.mm
@@ -10,7 +10,6 @@ void NSLogBackend::record(EventSeverity severity, Event event, const std::string
NSString *message =
[[NSString alloc] initWithBytes:msg.data() length:msg.size() encoding:NSUTF8StringEncoding];
NSLog(@"[%s] %s: %@", EventSeverityClass(severity).c_str(), EventClass(event).c_str(), message);
- [message release];
}
void NSLogBackend::record(EventSeverity severity, Event event, const char *format, ...) {
@@ -37,7 +36,6 @@ void NSLogBackend::record(EventSeverity severity, Event event, int64_t code,
[[NSString alloc] initWithBytes:msg.data() length:msg.size() encoding:NSUTF8StringEncoding];
NSLog(@"[%s] %s: (%lld) %@", EventSeverityClass(severity).c_str(), EventClass(event).c_str(),
code, message);
- [message release];
}
}