Merge patch code by Pieter Scholtz : Fix memory leak of 'SWIPE.