Fix critical glib warning if a BaseUI is quit without

being started.


git-svn-id: svn://localhost/ardour2/branches/3.0@12219 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2012-05-09 10:34:00 +00:00
parent f015482088
commit c8f6f87ea7
2 changed files with 3 additions and 1 deletions

View file

@ -97,7 +97,7 @@ BaseUI::run ()
void
BaseUI::quit ()
{
if (_main_loop->is_running()) {
if (_main_loop && _main_loop->is_running()) {
_main_loop->quit ();
run_loop_thread->join ();
}