From 4cf3042e1e4edf7d868c2f4fe504b6aef09cef6c Mon Sep 17 00:00:00 2001 From: Jaakko Heinonen Date: Wed, 27 Jul 2005 07:32:39 +0000 Subject: [PATCH] - don't try to save addressbook in memory allocation failure handler --- abook.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/abook.c b/abook.c index 06c4ea7..d634a06 100644 --- a/abook.c +++ b/abook.c @@ -103,8 +103,12 @@ check_abook_directory() static void xmalloc_error_handler(int err) { + /* + * We don't try to save addressbook here because we don't know + * if it's fully loaded to to memory. + */ if(is_ui_initialized()) - quit_abook(QUIT_SAVE); + close_ui(); fprintf(stderr, "Memory allocation failure: %s\n", strerror(err)); exit(EXIT_FAILURE); -- 2.39.2