Fix segfault on close.
authorCarl Hetherington <carl@carlh.net>
Wed, 23 Nov 2011 00:55:34 +0000 (00:55 +0000)
committerCarl Hetherington <carl@carlh.net>
Wed, 23 Nov 2011 00:55:34 +0000 (00:55 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@10784 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/vst_plugin.cc
libs/ardour/windows_vst_plugin.cc

index 29c5a58315c845ae47c2302b04b4154c148e898b..ae5e4897f8642eb4aa48d63039f9b747daf95ccd 100644 (file)
@@ -43,7 +43,7 @@ VSTPlugin::VSTPlugin (AudioEngine& engine, Session& session, VSTHandle* handle)
 
 VSTPlugin::~VSTPlugin ()
 {
-       deactivate ();
+       
 }
 
 void
index 571b0e5e7f15bbc0bc68c9ca908fda6e5323511e..9fe9ba0049b876415d6f299029fe46992c0280c6 100644 (file)
@@ -52,6 +52,7 @@ WindowsVSTPlugin::WindowsVSTPlugin (const WindowsVSTPlugin &other)
 
 WindowsVSTPlugin::~WindowsVSTPlugin ()
 {
+       deactivate ();
        fst_close (_state);
 }