You must delete the long tap detector after it is not used any more. You can do this in the client class destructor.
CMyContainer::~CMyContainer() { delete iLongTapDetector; }