Fixed minor memory leaking string
Fixed crash when end streaming