ticket printer now also takes just an array of tickets

memory leak fix