-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
poco/Foundation/include/Poco/AutoPtr.h
Lines 122 to 127 in 3838070
| if (&ptr != this) | |
| { | |
| if (_ptr) _ptr->release(); | |
| _ptr = ptr._ptr; | |
| if (_ptr) _ptr->duplicate(); | |
| } |
New object could be one referenced by old with it's internal AutoPtr.
If we release old pointer before duplicate new we could have dangled pointer problem already.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels