diff src/toplev.cc @ 6068:c9f0839c583f

[project @ 2006-10-20 16:54:30 by jwe]
author jwe
date Fri, 20 Oct 2006 16:54:30 +0000
parents 199f15a8d1fc
children 4036e6fca790
line wrap: on
line diff
--- a/src/toplev.cc	Fri Oct 20 13:36:14 2006 +0000
+++ b/src/toplev.cc	Fri Oct 20 16:54:30 2006 +0000
@@ -617,6 +617,11 @@
     {
       deja_vu = true;
 
+      // Do this explicitly so that destructors for mex file objects
+      // are called, so that functions registered with mexAtExit are
+      // called.
+      delete_symbol_tables ();
+
       command_editor::restore_terminal_state ();
 
       // FIXME -- is this needed?  Can it cause any trouble?