rs_line: bug#3537053 handling trimming point by endpoint directions
fixed a segfault at closing