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

No behavior change. Based on a patch from gmisocpp@gmail.com!
Merge pull request #872 from nico/vec

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