fixes crash when deallocating due to self-reference in longpressgesturerecogniser