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 2a7e440..52a02e2 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
 {