Free some one time alloc of the UI (cleaner valgrind output)
[ardour.git] / gtk2_ardour / luainstance.cc
index 1478f9790b13ac9af03efc9ec65722e96bfce005..567347f81ea66d8050b267dc84ed740d15df52a8 100644 (file)
@@ -833,6 +833,13 @@ LuaInstance::instance ()
        return _instance;
 }
 
+void
+LuaInstance::destroy_instance ()
+{
+       delete _instance;
+       _instance = 0;
+}
+
 LuaInstance::LuaInstance ()
 {
        lua.Print.connect (&_lua_print);