aboutsummaryrefslogtreecommitdiffhomepage
path: root/example
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-08-17 12:08:45 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-08-17 12:09:58 -0700
commit1369f83a49766b847a58d21313be82582a67b784 (patch)
tree1c84bfc620e4be17e383a2e7853d622b896a6578 /example
parentd9045b9396b1f3ad937e3e8ac43014fa44a2c949 (diff)
Fixed memory leak in logger
Diffstat (limited to 'example')
-rw-r--r--example/mac/macExample/macExample/AppDelegate.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/mac/macExample/macExample/AppDelegate.m b/example/mac/macExample/macExample/AppDelegate.m
index 5081f8a5..7be4bfc2 100644
--- a/example/mac/macExample/macExample/AppDelegate.m
+++ b/example/mac/macExample/macExample/AppDelegate.m
@@ -146,7 +146,7 @@ finishedRefreshWithFetcher:(GTMHTTPFetcher *)fetcher
self.checkOp = [self.session checkAccountOperation];
self.session.connectionLogger = ^(void * connectionID, MCOConnectionLogType type, NSData * data) {
if (type != MCOConnectionLogTypeSentPrivate) {
- NSLog(@"event logged:%p %i withData: %@", connectionID, type, [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]);
+ NSLog(@"event logged:%p %i withData: %@", connectionID, type, [[[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding] autorelease]);
}
};