Autoupdate.app can crash in the middle of installing an update, leaving the user with a broken application. The crash is caused by the status window’s controller (SUStatusController) being prematurely deallocated before the window is closed. This change prevents such a crash by keeping a strong reference to the SUStatusController in TerminationListener.
… X 10.7
Don't delete the log file and log app name to it when only checking for updates - this is something done frequently, on many apps' startup. Instead, clear the log before writing the first entry to it, so that it stays untouched if there's nothing to add to it. Log the application name before the first "real" log entry, instead of doing it unconditionally every time checkForUpdatesWithDriver: is called.