# HG changeset patch # User Dan Preston # Date 1241563236 25200 # Node ID 0fa1fcf07d87c7c908ea13066ce1392c25e8fec9 # Parent 423c134d320583a10f3f7808e50d7c859cd3d65e Fixed a small leak of an NSString object. diff -r 423c134d3205 -r 0fa1fcf07d87 iPhone/Classes/MyViewController.m --- a/iPhone/Classes/MyViewController.m Tue May 05 15:27:20 2009 -0700 +++ b/iPhone/Classes/MyViewController.m Tue May 05 15:40:36 2009 -0700 @@ -95,6 +95,7 @@ NSString *message = [[NSString alloc] initWithData: request.body encoding: NSUTF8StringEncoding]; label.text = [NSString stringWithFormat: @"Echoed:\nā€œ%@ā€",message]; [request respondWithData: request.body contentType: request.contentType]; + [message release]; } - (void) connectionDidClose: (TCPConnection*)connection;