From 4104e8ab47efb8489d106ccfd731ad6750e789d2 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald" Date: Wed, 4 Apr 2012 19:52:19 +0000 Subject: [PATCH] don't call db_synchronize() on db_close for iOS --- src/remote_device_db_iphone.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/remote_device_db_iphone.m b/src/remote_device_db_iphone.m index 15efef240..5ee92ea7c 100644 --- a/src/remote_device_db_iphone.m +++ b/src/remote_device_db_iphone.m @@ -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;