From: Andrew McGeachie Date: Mon, 4 May 2009 21:17:55 +0000 (+0000) Subject: THRIFT-478. Release our input and output stream instance variables when we're dealloc... X-Git-Tag: 0.2.0~127 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=0a2dc64c4928ee0e75bcde5128d2da2d791164cb;p=common%2Fthrift.git THRIFT-478. Release our input and output stream instance variables when we're dealloc to avoid a memory leak. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@771447 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/cocoa/src/transport/TNSStreamTransport.m b/lib/cocoa/src/transport/TNSStreamTransport.m index 2a7e4401..52a02e27 100644 --- a/lib/cocoa/src/transport/TNSStreamTransport.m +++ b/lib/cocoa/src/transport/TNSStreamTransport.m @@ -42,6 +42,13 @@ return [self initWithInputStream: nil outputStream: output]; } +- (void) dealloc +{ + [mInput release]; + [mOutput release]; + [super dealloc]; +} + - (int) readAll: (uint8_t *) buf offset: (int) off length: (int) len {