From 8811175c992d8a2f23fe5dd9dbb3a3335e4f985c Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 13 Oct 2009 15:39:53 +0000 Subject: [PATCH] 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 --- gtk2_ardour/ardour_ui.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 2170532bf2..19f9031b64 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -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(); }