possible fix for crash on exit - err on the side of caution
authorRobin Gareus <robin@gareus.org>
Sun, 7 Jul 2013 02:14:41 +0000 (04:14 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 7 Jul 2013 02:17:04 +0000 (04:17 +0200)
gtk2_ardour/ardour_ui.cc

index c664f870ce4d212979448b5d5b2ea804b66a5ea2..7f72725af8298fbc99b8a5fb5e15cfe6020cee71 100644 (file)
@@ -153,6 +153,7 @@ ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[], const char* localedir)
          /* big clock */
 
        , big_clock (new AudioClock (X_("bigclock"), false, "big", true, true, false, false))
+       , video_timeline(0)
 
          /* start of private members */
 
@@ -900,6 +901,7 @@ If you still wish to quit, please use the\n\n\
        }
 
        delete ARDOUR_UI::instance()->video_timeline;
+       ARDOUR_UI::instance()->video_timeline = NULL;
        stop_video_server();
 
        /* Save state before deleting the session, as that causes some