Fixed memory leak with 3DTest