]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix crashes in auto updater.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 3 Jun 2013 09:58:34 +0000 (17:58 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 3 Jun 2013 09:58:34 +0000 (17:58 +0800)
browser/auto_updater_mac.mm
browser/mac/Info.plist

index 880e7967e4fba75bc5a58402d50723fcce6ff0b7..8837f5387a18c86ac209e4f4eb56fa0735946c97 100644 (file)
@@ -56,10 +56,6 @@ void CallNSInvocation(ScopedNSInvocation invocation) {
       base::Bind(&CallNSInvocation, base::Passed(invocation_ptr.Pass())));
 }
 
-- (void)updaterWillRelaunchApplication:(SUUpdater*)updater {
-  [[SUUpdater sharedUpdater] setDelegate:nil];
-}
-
 @end
 
 namespace auto_updater {
@@ -67,7 +63,6 @@ namespace auto_updater {
 // static
 void AutoUpdater::Init() {
   SUUpdaterDelegate* delegate = [[SUUpdaterDelegate alloc] init];
-  [delegate autorelease];
   [[SUUpdater sharedUpdater] setDelegate:delegate];
 }
 
@@ -89,7 +84,7 @@ void AutoUpdater::SetAutomaticallyDownloadsUpdates(bool yes) {
 
 // static
 void AutoUpdater::CheckForUpdates() {
-  [[SUUpdater sharedUpdater] checkForUpdates:[SUUpdater sharedUpdater]];
+  [[SUUpdater sharedUpdater] checkForUpdates:nil];
 }
 
 // static
index 07bc63281af48fbff2c4bd0fcc179dc5aeec1dcb..971fd379af0a708ed23909abfa933cdf17526176 100644 (file)
@@ -8,6 +8,8 @@
        <string>${PRODUCT_NAME}</string>
   <key>CFBundleIconFile</key>
   <string>atom.icns</string>
+  <key>CFBundleVersion</key>
+  <string>1.0</string>
        <key>NSMainNibFile</key>
        <string>MainMenu</string>
        <key>NSPrincipalClass</key>