diff options
| author | astashkinfk <[email protected]> | 2025-11-22 14:29:57 +0300 |
|---|---|---|
| committer | astashkinfk <[email protected]> | 2025-11-22 14:47:28 +0300 |
| commit | 476a99775bfdde8863211edef9acf773e3404f95 (patch) | |
| tree | 5c350ec8e87eb312526f6c18eb2684a3fc33e6d6 /util | |
| parent | 47d9789dab0402ab2ccb5703bb1d626eb6c69222 (diff) | |
temporary revert commit to fix another bugs rXXXXXX, fix UB in util/ysafeptr.h
commit_hash:7d97cb5039c7f4aec71ad5b7a9fbcd8a392500a2
Diffstat (limited to 'util')
| -rw-r--r-- | util/ysafeptr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/ysafeptr.h b/util/ysafeptr.h index c6c6a87abd6..ab5f26fb1ba 100644 --- a/util/ysafeptr.h +++ b/util/ysafeptr.h @@ -206,8 +206,8 @@ public: \ \ protected: \ virtual void DestroyContents() override { \ - int nHoldRefs = this->RefData, nHoldObjs = this->ObjData; \ this->~classname(); \ + int nHoldRefs = this->RefData, nHoldObjs = this->ObjData; \ new (this) classname(); \ this->RefData += nHoldRefs; \ this->ObjData += nHoldObjs; \ |
