Index: third_party/WebKit/Source/modules/device_orientation/DeviceMotionDispatcher.cpp |
diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceMotionDispatcher.cpp b/third_party/WebKit/Source/modules/device_orientation/DeviceMotionDispatcher.cpp |
index 1c3e1d7c3afb7eb71c43bbe55d709b2eda00f4d3..aee9b19b548395251aaf44df588913c74c6262dd 100644 |
--- a/third_party/WebKit/Source/modules/device_orientation/DeviceMotionDispatcher.cpp |
+++ b/third_party/WebKit/Source/modules/device_orientation/DeviceMotionDispatcher.cpp |
@@ -38,8 +38,8 @@ |
DeviceMotionDispatcher& DeviceMotionDispatcher::instance() |
{ |
- DEFINE_STATIC_LOCAL(DeviceMotionDispatcher, deviceMotionDispatcher, (new DeviceMotionDispatcher)); |
- return deviceMotionDispatcher; |
+ DEFINE_STATIC_LOCAL(Persistent<DeviceMotionDispatcher>, deviceMotionDispatcher, (new DeviceMotionDispatcher())); |
+ return *deviceMotionDispatcher; |
} |
DeviceMotionDispatcher::DeviceMotionDispatcher() |