From 98f2d5e1554deabe5f8584d7fe0f9f8e4efbc934 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Tue, 28 Jan 2020 00:49:12 +0100 Subject: [PATCH] fixed compilation issue --- src/wallet/plain_wallet_api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/plain_wallet_api.cpp b/src/wallet/plain_wallet_api.cpp index 65dcd585..363e936d 100644 --- a/src/wallet/plain_wallet_api.cpp +++ b/src/wallet/plain_wallet_api.cpp @@ -47,7 +47,7 @@ namespace plain_wallet LOG_ERROR("Internall error: attempt to delete wallet with wrong instance id: " << h); } instance_ptr = it->second; - ginstances.erase(instance_ptr); + ginstances.erase(it); CRITICAL_REGION_END(); delete instance_ptr; }