From deaa7a8f266c26bbb15fe0461ef99620f199a599 Mon Sep 17 00:00:00 2001 From: cypt4 <106654560+cypt4@users.noreply.github.com> Date: Thu, 19 Dec 2024 14:16:42 +0400 Subject: [PATCH] Fix dangling pointer crash in ZCashRpc (#27062) Resolves https://github.com/brave/brave-browser/issues/42967 --- components/brave_wallet/browser/zcash/zcash_rpc.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/components/brave_wallet/browser/zcash/zcash_rpc.cc b/components/brave_wallet/browser/zcash/zcash_rpc.cc index ee5f4e7d868e..44420fe07dd8 100644 --- a/components/brave_wallet/browser/zcash/zcash_rpc.cc +++ b/components/brave_wallet/browser/zcash/zcash_rpc.cc @@ -739,9 +739,6 @@ void ZCashRpc::OnGetAddressTxResponse( UrlLoadersList::iterator it, StreamHandlersList::iterator handler_it, base::expected result) { - auto current_loader = std::move(*it); - auto current_handler = std::move(*handler_it); - url_loaders_list_.erase(it); stream_handlers_list_.erase(handler_it);