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; }