fix handling around unique_ptr releases
This commit is contained in:
committed by
Konstantin Käfer
parent
8408dc9e4d
commit
8c0acecbe3
@@ -163,7 +163,7 @@ void SQLiteCache::createDatabase() {
|
||||
db->exec(sql);
|
||||
} catch (mapbox::sqlite::Exception &ex) {
|
||||
Log::Error(Event::Database, "Failed to create database: %s", ex.what());
|
||||
db.release();
|
||||
db.reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user