UB: virtual methods in destructor at Trezor

This commit is contained in:
mj-xmr 2021-08-16 13:01:00 +02:00
parent 2222bea92f
commit 56589ddab8
No known key found for this signature in database
GPG Key ID: C101BF94093451E0

View File

@ -64,8 +64,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());
} }