src: use smart pointer instead of new and delete
Use an std::unique_ptr for variables that are deleted right after creation.
Since the destructor of InspectorTimer is private but needed by the unique_ptr, define deleter_type as friend.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
stc