From: schani Date: Thu, 5 Nov 1998 20:46:38 +0000 (+0000) Subject: Finalizing really works now (finalizing occured after compiler and loader X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=22d2ecfa1401086f1371ed0667296ada50973d5c;p=cacao.git Finalizing really works now (finalizing occured after compiler and loader were deinitialized). --- diff --git a/Makefile b/Makefile index 06bb5c982..9d3bae851 100644 --- a/Makefile +++ b/Makefile @@ -49,7 +49,7 @@ endif #CFLAGS = -mieee -O3 -Wall $(THREAD_CFLAGS) CC = gcc -#CFLAGS = -g3 -ieee $(THREAD_CFLAGS) +#CFLAGS = -g -ieee $(THREAD_CFLAGS) CFLAGS = -O3 -ieee $(THREAD_CFLAGS) OBJ = main.o tables.o loader.o compiler.o newcomp.o builtin.o asmpart.o \ diff --git a/main.c b/main.c index 40673045c..067fe7a9c 100644 --- a/main.c +++ b/main.c @@ -711,9 +711,11 @@ int main(int argc, char **argv) /************************ Freigeben aller Resourcen *******************/ + heap_close (); /* must be called before compiler_close and + loader_close because finalization occurs + here */ compiler_close (); loader_close (); - heap_close (); unicode_close ( literalstring_free ); diff --git a/src/cacao/cacao.c b/src/cacao/cacao.c index 40673045c..067fe7a9c 100644 --- a/src/cacao/cacao.c +++ b/src/cacao/cacao.c @@ -711,9 +711,11 @@ int main(int argc, char **argv) /************************ Freigeben aller Resourcen *******************/ + heap_close (); /* must be called before compiler_close and + loader_close because finalization occurs + here */ compiler_close (); loader_close (); - heap_close (); unicode_close ( literalstring_free );