Ravencoin icon indicating copy to clipboard operation
Ravencoin copied to clipboard

backport: Use std::unique_ptr (C++11) where possible (bitcoin #11043)

Open fdoving opened this issue 3 years ago • 2 comments

Original-author: practicalswift

Use std::unique_ptr (C++11) where possible.

Rationale:

Avoid resource leaks (specifically: forgetting to delete an object created using new) Avoid undefined behaviour (specifically: double delete:s)

Changes: Resolving conflicts and adjustments for Ravencoin and assets.

fdoving avatar Dec 19 '21 18:12 fdoving

TODO: Assets still need some work.

fdoving avatar Dec 19 '21 18:12 fdoving

Re-added the assert.

fdoving avatar Jan 21 '22 19:01 fdoving