| 1 | diff --git a/cpp/src/phonenumbers/geocoding/phonenumber_offline_geocoder.cc b/cpp/src/phonenumbers/geocoding/phonenumber_offline_geocoder.cc
|
| 2 | index 1e5a5bacc..e15db99e2 100644
|
| 3 | |
| 4 | |
| 5 | @@ -77,7 +77,7 @@ void PhoneNumberOfflineGeocoder::Init(
|
| 6 | }
|
| 7 |
|
| 8 | PhoneNumberOfflineGeocoder::~PhoneNumberOfflineGeocoder() {
|
| 9 | - absl::MutexLock l(&mu_);
|
| 10 | + absl::MutexLock l(mu_);
|
| 11 | gtl::STLDeleteContainerPairSecondPointers(
|
| 12 | available_maps_.begin(), available_maps_.end());
|
| 13 | }
|
| 14 | @@ -195,7 +195,7 @@ const char* PhoneNumberOfflineGeocoder::GetAreaDescription(
|
| 15 | const int country_calling_code = number.country_code();
|
| 16 | // NANPA area is not split in C++ code.
|
| 17 | const int phone_prefix = country_calling_code;
|
| 18 | - absl::MutexLock l(&mu_);
|
| 19 | + absl::MutexLock l(mu_);
|
| 20 | const AreaCodeMap* const descriptions = GetPhonePrefixDescriptions(
|
| 21 | phone_prefix, lang, script, region);
|
| 22 | const char* description = descriptions ? descriptions->Lookup(number) : NULL;
|