THRIFT-478. Release our input and output stream instance variables when we're dealloc...
authorAndrew McGeachie <geechorama@apache.org>
Mon, 4 May 2009 21:17:55 +0000 (21:17 +0000)
committerAndrew McGeachie <geechorama@apache.org>
Mon, 4 May 2009 21:17:55 +0000 (21:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@771447 13f79535-47bb-0310-9956-ffa450edef68

lib/cocoa/src/transport/TNSStreamTransport.m

index 2a7e440..52a02e2 100644 (file)
   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
 {