Skip to content

Commit

Permalink
Fix dangling pointer crash in ZCashRpc (#27062)
Browse files Browse the repository at this point in the history
  • Loading branch information
cypt4 authored Dec 19, 2024
1 parent 90918ed commit deaa7a8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions components/brave_wallet/browser/zcash/zcash_rpc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -739,9 +739,6 @@ void ZCashRpc::OnGetAddressTxResponse(
UrlLoadersList::iterator it,
StreamHandlersList::iterator handler_it,
base::expected<bool, std::string> 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);

Expand Down

0 comments on commit deaa7a8

Please sign in to comment.