UB: virtual methods in destructor at Trezor

This commit is contained in:
mj-xmr 2021-08-16 13:01:00 +02:00 committed by wowario
parent 8e9a4aed7a
commit bac6090688
No known key found for this signature in database
GPG key ID: 24DCBE762DE9C111

View file

@ -64,8 +64,8 @@ namespace trezor {
device_trezor::~device_trezor() {
try {
disconnect();
release();
device_trezor::disconnect();
device_trezor::release();
} catch(std::exception const& e){
MWARNING("Could not disconnect and release: " << e.what());
}