fixed input stream leaks in iOS7 By OpenFibers