Fix the memory leak in app battery info