Linux deltas double free and newline fix (#32168)
Linux deltas double free and newline fix (#32168)

* Fix double free

* Fix entering a newline

* Formatting

Co-authored-by: Renzo Olivares <6748697d9e87d26370776fd5f806ab6bab7ac482@google.com>
jason-simmons/flutter_engine,chinmaygarde/flutter_engine,flutter/engine,flutter/engine,devoncarew/engine,devoncarew/engine,jason-simmons/flutter_engine,jason-simmons/flutter_engine,devoncarew/engine,flutter/engine,chinmaygarde/flutter_engine,chinmaygarde/flutter_engine,rmacnak-google/engine,devoncarew/engine,chinmaygarde/flutter_engine,jason-simmons/flutter_engine,flutter/engine,jason-simmons/flutter_engine,devoncarew/engine,rmacnak-google/engine,rmacnak-google/engine,devoncarew/engine,flutter/engine,flutter/engine,jason-simmons/flutter_engine,rmacnak-google/engine,rmacnak-google/engine,jason-simmons/flutter_engine,chinmaygarde/flutter_engine,rmacnak-google/engine,flutter/engine,chinmaygarde/flutter_engine,rmacnak-google/engine,devoncarew/engine,flutter/engine,chinmaygarde/flutter_engine,jason-simmons/flutter_engine