Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: ui/base/gestures/gesture_recognizer_impl.h

Issue 10826117: Fix memory leak in ~GestureRecognizerImpl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/base/gestures/gesture_recognizer_impl.h
diff --git a/ui/base/gestures/gesture_recognizer_impl.h b/ui/base/gestures/gesture_recognizer_impl.h
index 8b4300106416607a851ebc45417e4b030ca594db..95d61fb3eb7fcddb5a43db79576aec0940cf5545 100644
--- a/ui/base/gestures/gesture_recognizer_impl.h
+++ b/ui/base/gestures/gesture_recognizer_impl.h
@@ -59,7 +59,7 @@ class UI_EXPORT GestureRecognizerImpl : public GestureRecognizer {
typedef std::queue<TouchEvent*> TouchEventQueue;
std::map<GestureConsumer*, TouchEventQueue*> event_queue_;
- std::map<GestureConsumer*, GestureSequence*> consumer_sequence_;
+ std::map<GestureConsumer*, scoped_ptr<GestureSequence>> consumer_sequence_;
girard 2012/08/02 17:14:20 Changed to scoped_ptr. This ensures that during
// Both |touch_id_target_| and |touch_id_target_for_gestures_| map a touch-id
// to its target window. touch-ids are removed from |touch_id_target_| on
« no previous file with comments | « no previous file | ui/base/gestures/gesture_recognizer_impl.cc » ('j') | ui/base/gestures/gesture_recognizer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698