Commits

Tuukka Norri  committed b47863a

Fixed even more memory leaks

  • Participants
  • Parent commits 49521d1
  • Branches PGTS-NG

Comments (0)

Files changed (3)

File Sources/BXDatabaseObject.m

  */
 - (NSDictionary *) cachedValues
 {
-    id rval = nil;
+    id retval = nil;
     @synchronized (mValues)
     {
-        rval = [mValues copy];
+        retval = [mValues copy];
     }
-    return rval;
+    return [retval autorelease];
 }
 
 /**

File Sources/PGTSConnection.h

 	id mConnector;
     PGTSDatabaseDescription* mDatabase;
     NSMutableDictionary* mPGTypes;
-	id <PGTSCertificateVerificationDelegate> mCertificateVerificationDelegate;
+	id <PGTSCertificateVerificationDelegate> mCertificateVerificationDelegate; //Weak
     
     CFRunLoopRef mRunLoop;
     CFSocketRef mSocket;
     CFRunLoopSourceRef mSocketSource;
     
-    id mDelegate;
+    id mDelegate; //Weak
 	
 	BOOL mDidDisconnectOnSleep;
 	BOOL mProcessingNotifications;

File Sources/PGTSConnection.mm

 	[mQueue release];
 	[self setConnector: nil];
     [mDatabase release];
+	[mPGTypes release];
     [self freeCFTypes];
 	[super dealloc];
 }