Fixed a memory leak bug; included a warning about threaded use