**ThreadWorker function cause possible memory leaks** 
ThreadWorker function cause possible memory leaks
