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

@ -1,4 +1,6 @@
#!/bin/sh
. `dirname "$0"`/../build/gtk2_ardour/ardev_common_waf.sh
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
ldd $TOP/$EXECUTABLE | grep boost
ldd $TOP/build/libs/ardour/libardour.so | grep boost
exec $TOP/$EXECUTABLE "$@"

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 ();
}