Closed Vladivostoks closed 2 years ago
Need clear self before using operator =(CJsonObject&& ) with rvalue to cover member in CJsonObject
operator =(CJsonObject&& )
CJsonObject FuncA() { /*....*/ return CJsonObject(); } void main() { CJsonObject Ocjson; /*....*/ // Memory leak found Ocjson = FuncA(); /*....*/ }
BUGS FOUND
Need clear self before using
operator =(CJsonObject&& )
with rvalue to cover member in CJsonObject