add gl smooth line
fix memory managerment error