Added line listener to get rid of memory leak in clip