Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Clothing::blank()
- {
- mData.mType = 0;
- mData.mWeight = 0;
- mData.mValue = 0;
- mData.mEnchant = 0;
- mParts.mParts.clear();
- mName.clear();
- mModel.clear();
- mIcon.clear();
- mIcon.clear();
- mEnchant.clear();
- mScript.clear();
- }
- This suspicious code was found in OpenMW project by PVS-Studio static code analyzer.
- Warning message is:
- V586 The 'clear' function is called twice for deallocation of the same resource. Check lines: 48, 49. components loadclot.cpp 49
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment