summaryrefslogtreecommitdiff
path: root/screen.c
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2019-08-05 08:06:19 +0100
committerKatolaZ <katolaz@freaknet.org>2019-08-05 08:06:19 +0100
commit9127db5e322c1b0cd57adf90e8cfefad66020fe2 (patch)
treea654d8c13225cb91a22d34626047a5c9eb24fa4f /screen.c
parent6bf74b8e63315aeeac6fe4307e9e2679d334aca3 (diff)
remove atexit and replace exit() with cleanup()
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c2
1 files changed, 1 insertions, 1 deletions
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<HEIGHT; i++){
alloc_line(&(screen.l[i]));