From: Jaakko Heinonen Date: Wed, 27 Jul 2005 07:32:39 +0000 (+0000) Subject: - don't try to save addressbook in memory allocation failure handler X-Git-Tag: upstream/0.6.1~2^2~200 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=4cf3042e1e4edf7d868c2f4fe504b6aef09cef6c;p=pkg%2Fabook.git - don't try to save addressbook in memory allocation failure handler --- 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);