Changeset 413

Show
Ignore:
Timestamp:
08/02/08 10:17:43 (4 months ago)
Author:
saurik
Message:

Tried to fix the memory leak issue and failed.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/data/sqlite3/tempdir.diff

    r412 r413  
    4949   /* It's odd to simulate an io-error here, but really this is just 
    5050   ** using the io-error infrastructure to test that SQLite handles this 
    51 @@ -2516,6 +2526,16 @@ 
     51@@ -2516,6 +2526,18 @@ 
    5252   */ 
    5353   SimulateIOError( return SQLITE_ERROR ); 
     
    5555+#ifdef __APPLE__ 
    5656+  if (azDirs[1] == NULL) { 
     57+    NSPushAutoreleasePool(); 
    5758+    cfstr = (CFStringRef) NSTemporaryDirectory(); 
    5859+    maxsize = CFStringGetMaximumSizeForEncoding(CFStringGetLength(cfstr), kCFStringEncodingUTF8) + 1; 
     
    6061+    CFStringGetCString(cfstr, cstr, maxsize, kCFStringEncodingUTF8); 
    6162+    azDirs[1] = cstr; 
     63+    NSPopAutoreleasePool(); 
    6264+  } 
    6365+#endif