]> git.deb.at Git - pkg/abook.git/commitdiff
- don't try to save addressbook in memory allocation failure handler
authorJaakko Heinonen <jheinonen@users.sourceforge.net>
Wed, 27 Jul 2005 07:32:39 +0000 (07:32 +0000)
committerJaakko Heinonen <jheinonen@users.sourceforge.net>
Wed, 27 Jul 2005 07:32:39 +0000 (07:32 +0000)
abook.c

diff --git a/abook.c b/abook.c
index 06c4ea788ccd2f0d2d82569bfa481792b4794aac..d634a06f0f2f9567292da1a99ba55471bc43d0e4 100644 (file)
--- 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);