fixed two leaks in stroke_interface