cleaned up leaky usage of libgdx file