From b7008066798f03a3ca903e458c5fdc435530ef18 Mon Sep 17 00:00:00 2001 From: NejcZdovc Date: Tue, 30 Jul 2019 21:17:41 +0200 Subject: [PATCH] Fixes exclude crash Resolves https://github.com/brave/brave-browser/issues/5457 --- .../bat-native-ledger/src/bat/ledger/internal/bat_publishers.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/bat_publishers.cc b/vendor/bat-native-ledger/src/bat/ledger/internal/bat_publishers.cc index af33c5f2f321..dd292b3384d6 100644 --- a/vendor/bat-native-ledger/src/bat/ledger/internal/bat_publishers.cc +++ b/vendor/bat-native-ledger/src/bat/ledger/internal/bat_publishers.cc @@ -329,7 +329,7 @@ void BatPublishers::OnSetPublisherExclude( } publisher_info->excluded = exclude; - ledger_->SetPublisherInfo(std::move(publisher_info)); + ledger_->SetPublisherInfo(publisher_info->Clone()); if (exclude == ledger::PUBLISHER_EXCLUDE::EXCLUDED) { ledger_->DeleteActivityInfo( publisher_info->id,