fix memory leak error by igugin