win/lineprinter: Use a vector instead of manual memory management.

No behavior change. Based on a patch from gmisocpp@gmail.com!
No good reason, I kept the 2nd for loop header below instead of this one. Let me change this…