You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ge...@apache.org on 2009/05/04 23:17:57 UTC

svn commit: r771447 - /incubator/thrift/trunk/lib/cocoa/src/transport/TNSStreamTransport.m

Author: geechorama
Date: Mon May  4 21:17:55 2009
New Revision: 771447

URL: http://svn.apache.org/viewvc?rev=771447&view=rev
Log:
THRIFT-478. Release our input and output stream instance variables when we're dealloc to avoid a memory leak.

Modified:
    incubator/thrift/trunk/lib/cocoa/src/transport/TNSStreamTransport.m

Modified: incubator/thrift/trunk/lib/cocoa/src/transport/TNSStreamTransport.m
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/cocoa/src/transport/TNSStreamTransport.m?rev=771447&r1=771446&r2=771447&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/cocoa/src/transport/TNSStreamTransport.m (original)
+++ incubator/thrift/trunk/lib/cocoa/src/transport/TNSStreamTransport.m Mon May  4 21:17:55 2009
@@ -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
 {