add trees.dispose() to get rid of floating tree vector