X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Flinux_vst_gui_support.cc;h=e438ed6f926f98c83a28d6c96b199b3aa7b38e64;hb=8ada45344e949f3d36a96094ed443cac82ffd3c7;hp=5eaf485c7569587ff45bce90c1d9d70828e33282;hpb=95ccbc452f513a9d6f70de45bc413067e568364c;p=ardour.git diff --git a/gtk2_ardour/linux_vst_gui_support.cc b/gtk2_ardour/linux_vst_gui_support.cc index 5eaf485c75..e438ed6f92 100644 --- a/gtk2_ardour/linux_vst_gui_support.cc +++ b/gtk2_ardour/linux_vst_gui_support.cc @@ -22,11 +22,10 @@ /** VSTFX - An engine based on FST for handling linuxVST plugins **/ /******************************************************************/ -/** EDITOR tab stops at 4 **/ - #include #include #include +#include #include #include @@ -772,6 +771,10 @@ vstfx_event_loop_remove_plugin (VSTState* vstfx) } } + // if this function is called, there must be + // at least one plugin in the linked list + assert(vstfx_first); + if (vstfx_first == vstfx) { vstfx_first = vstfx_first->next; }