Index: /trunk/nv/root.hh
===================================================================
--- /trunk/nv/root.hh	(revision 142)
+++ /trunk/nv/root.hh	(revision 143)
@@ -25,4 +25,5 @@
 		lua::state*    get_lua_state()     const { return m_lua_state; }
 		uid_store*     get_uid_store()     const { return m_uid_store; }
+		virtual ~root() { destroy_children(); }
 	protected:
 		type_database* m_type_database;
