fix (?) crash caused near program exit when using MCP. sort of a bandaid, but its a correct and necessary check on session != 0 anyway

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5769 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2009-10-13 15:39:53 +00:00
parent 14d12cf4f4
commit 8811175c99

View file

@ -570,7 +570,7 @@ ARDOUR_UI::update_autosave ()
{
ENSURE_GUI_THREAD (mem_fun (*this, &ARDOUR_UI::update_autosave));
if (session->dirty()) {
if (session && session->dirty()) {
if (_autosave_connection.connected()) {
_autosave_connection.disconnect();
}