Delete RouteUI immediately on request, rather than in an
authorCarl Hetherington <carl@carlh.net>
Thu, 8 Sep 2011 17:48:58 +0000 (17:48 +0000)
committerCarl Hetherington <carl@carlh.net>
Thu, 8 Sep 2011 17:48:58 +0000 (17:48 +0000)
idle loop.  The idle loop bit is thought to be a
hangover from A2, and it causes #4315 because the
deleted ARDOUR::Route requests its references to be
dropped but its TimeAxisView hangs around for too long.

git-svn-id: svn://localhost/ardour2/branches/3.0@10066 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/route_ui.cc

index fc9d878b83ec03276905b9aaabd1049c0b3c4dc2..90de21d8546f798690174a89add161f2b3fef709 100644 (file)
@@ -172,9 +172,7 @@ RouteUI::reset ()
 void
 RouteUI::self_delete ()
 {
-       /* This may be called from a non-GUI thread. Keep it safe */
-
-       delete_when_idle (this);
+       delete this;
 }
 
 void