Fixing swipe view memory leak