diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2013-08-17 12:08:45 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2013-08-17 12:09:58 -0700 |
commit | 1369f83a49766b847a58d21313be82582a67b784 (patch) | |
tree | 1c84bfc620e4be17e383a2e7853d622b896a6578 /example | |
parent | d9045b9396b1f3ad937e3e8ac43014fa44a2c949 (diff) |
Fixed memory leak in logger
Diffstat (limited to 'example')
-rw-r--r-- | example/mac/macExample/macExample/AppDelegate.m | 2 |
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]); } }; |