diff --git a/extensions/GUI/CCScrollView/CCScrollView.cpp b/extensions/GUI/CCScrollView/CCScrollView.cpp index d4144466e1..d56d3e3be5 100644 --- a/extensions/GUI/CCScrollView/CCScrollView.cpp +++ b/extensions/GUI/CCScrollView/CCScrollView.cpp @@ -183,7 +183,7 @@ void ScrollView::setTouchEnabled(bool e) { _dragging = false; _touchMoved = false; - _touches->removeAllObjects(); + if(_touches)_touches->removeAllObjects(); } }