don't call db_synchronize() on db_close for iOS

This commit is contained in:
matthias.ringwald 2012-04-04 19:52:19 +00:00
parent d71f9734b9
commit 4104e8ab47

View File

@ -109,7 +109,9 @@ static void db_synchronize(void){
static void db_close(void){
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
db_synchronize();
// don't call db_synchronize();
// a) we're calling db_synchronize() after each change already
// b) db_close is called during the SIGINT handler which causes a corrupt prefs file
[remote_devices release];
remote_devices = nil;