From c52c6ab3ccc2f14f4237b99133fd53f89a4d3ded Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Tue, 14 Jan 1997 19:16:23 +0100
Subject: [PATCH] * main.c (exit_main): Call cleanup_objects() *before*
 exit_dynamic_load(). Otherwise, cleanup_object() will try to destruct objects
 whose corresponding program have been freed and unloaded.

Rev: src/main.c:1.14
---
 src/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c
index 0d377a4ec2..b41d531015 100644
--- a/src/main.c
+++ b/src/main.c
@@ -4,7 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
-RCSID("$Id: main.c,v 1.13 1996/12/05 01:51:21 hubbe Exp $");
+RCSID("$Id: main.c,v 1.14 1997/01/14 18:16:23 nisse Exp $");
 #include "types.h"
 #include "backend.h"
 #include "module.h"
@@ -273,8 +273,8 @@ void exit_main()
   void cleanup_program();
 
   th_cleanup();
-  exit_dynamic_load();
   cleanup_objects();
+  exit_dynamic_load();
   exit_signals();
   exit_lex();
   cleanup_interpret();
-- 
GitLab