projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Free some one time alloc of the UI (cleaner valgrind output)
[ardour.git]
/
gtk2_ardour
/
luainstance.cc
diff --git
a/gtk2_ardour/luainstance.cc
b/gtk2_ardour/luainstance.cc
index 1478f9790b13ac9af03efc9ec65722e96bfce005..567347f81ea66d8050b267dc84ed740d15df52a8 100644
(file)
--- a/
gtk2_ardour/luainstance.cc
+++ b/
gtk2_ardour/luainstance.cc
@@
-833,6
+833,13
@@
LuaInstance::instance ()
return _instance;
}
+void
+LuaInstance::destroy_instance ()
+{
+ delete _instance;
+ _instance = 0;
+}
+
LuaInstance::LuaInstance ()
{
lua.Print.connect (&_lua_print);