UB: virtual methods in destructor at Trezor

This commit is contained in:
mj-xmr 2021-08-16 11:45:39 +02:00
parent 8fde011dbe
commit ad9fde46a3
No known key found for this signature in database
GPG key ID: C101BF94093451E0

View file

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