From 3b18fa96826e1ddfe8b4a09a9e4408c0f3eaca14 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Fri, 8 Jan 2010 20:47:13 +0200 Subject: [PATCH] * mu-store-xapian: catch exceptions in dtor --- src/mu-store-xapian.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mu-store-xapian.cc b/src/mu-store-xapian.cc index 78741fd7..ce0bc633 100644 --- a/src/mu-store-xapian.cc +++ b/src/mu-store-xapian.cc @@ -64,9 +64,11 @@ mu_store_xapian_new (const char* xpath) } MU_XAPIAN_CATCH_BLOCK; - delete store->_db; + try { + delete store->_db; + } MU_XAPIAN_CATCH_BLOCK; + g_free (store); - return NULL; }