Index: third_party/WebKit/Source/modules/sensor/SensorReading.h |
diff --git a/third_party/WebKit/Source/modules/sensor/SensorReading.h b/third_party/WebKit/Source/modules/sensor/SensorReading.h |
index 2eaf7e6a177db48e75962b885ee31ae8b643de3d..9bc2a72f64adb85ef967a93cb62c46dfd93d4e15 100644 |
--- a/third_party/WebKit/Source/modules/sensor/SensorReading.h |
+++ b/third_party/WebKit/Source/modules/sensor/SensorReading.h |
@@ -16,7 +16,7 @@ class ExecutionContext; |
class ScriptState; |
class SensorReading |
- : public GarbageCollected<SensorReading> |
+ : public GarbageCollectedFinalized<SensorReading> |
, public ScriptWrappable { |
DEFINE_WRAPPERTYPEINFO(); |
public: |
@@ -28,6 +28,8 @@ public: |
// previous one; otherwise returns 'false'. |
virtual bool isReadingUpdated(const SensorProxy::Reading& previous) const = 0; |
+ virtual ~SensorReading(); |
+ |
protected: |
explicit SensorReading(SensorProxy*); |