UB: virtual methods in destructor at Trezor
This commit is contained in:
parent
8fde011dbe
commit
ad9fde46a3
|
@ -66,8 +66,8 @@ namespace trezor {
|
||||||
|
|
||||||
device_trezor::~device_trezor() {
|
device_trezor::~device_trezor() {
|
||||||
try {
|
try {
|
||||||
disconnect();
|
device_trezor::disconnect();
|
||||||
release();
|
device_trezor::release();
|
||||||
} catch(std::exception const& e){
|
} catch(std::exception const& e){
|
||||||
MWARNING("Could not disconnect and release: " << e.what());
|
MWARNING("Could not disconnect and release: " << e.what());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue