Completed the deallocateMemory().