Delete the separate 2D panner window when its corresponding
authorCarl Hetherington <carl@carlh.net>
Tue, 8 Nov 2011 12:30:55 +0000 (12:30 +0000)
committerCarl Hetherington <carl@carlh.net>
Tue, 8 Nov 2011 12:30:55 +0000 (12:30 +0000)
panner is being removed; fixes #4452.

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

gtk2_ardour/panner_ui.cc

index 503706b6c352a741fdd7c198b69d0d11f71649f1..627d4e76aaa98d5435852a8b78b0a62abb55a563 100644 (file)
@@ -249,6 +249,9 @@ PannerUI::setup_pan ()
                EventBox* eb = manage (new EventBox());
                pan_vbox.pack_start (*eb, false, false);
 
+               delete big_window;
+               big_window = 0;
+
        } else if (nouts == 2) {
 
                 if (nins == 2) {
@@ -301,6 +304,8 @@ PannerUI::setup_pan ()
                                                    nins) << endmsg;
                 }
 
+               delete big_window;
+               big_window = 0;
 
        } else {