Fixed memory leak with Parser threads