Fixed Memory Leak

Using unique_ptr indeed of shared_ptr…