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
1 changed files with 2 additions and 2 deletions

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());
}