mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 14:46:12 -04:00
Fix use after free error.
PiperOrigin-RevId: 649180234
This commit is contained in:
committed by
Copybara-Service
parent
069d836793
commit
cdf658c985
@@ -61,8 +61,8 @@ void ThreadTimer::Cancel() {
|
||||
if (run_cnt_->fetch_add(1) > 0) {
|
||||
// Timer has already fired, delete the run_cnt.
|
||||
delete run_cnt_;
|
||||
run_cnt_ = nullptr;
|
||||
}
|
||||
run_cnt_ = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user