From 9127db5e322c1b0cd57adf90e8cfefad66020fe2 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Mon, 5 Aug 2019 08:06:19 +0100 Subject: remove atexit and replace exit() with cleanup() --- screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'screen.c') diff --git a/screen.c b/screen.c index 5729a68..587abd7 100644 --- a/screen.c +++ b/screen.c @@ -400,7 +400,7 @@ void init_screen(){ screen.num = HEIGHT; if (screen.l == NULL){ perror("allocating screen"); - exit(1); + cleanup(-1); } for (i=0; i