-
Stephen Nicholas Swatman authored
Previously this method returned a raw pointer and also used many raw pointers internally, leading to rampant use of the delete keyword. We replace all these raw pointers by smart pointers to ensure that the memory is freed safely and correctly.