Index: content/renderer/screen_orientation/screen_orientation_observer.cc |
diff --git a/content/renderer/screen_orientation/screen_orientation_observer.cc b/content/renderer/screen_orientation/screen_orientation_observer.cc |
index e3fc407ed1331b8b5ef3d2017c0530b727f5673d..8cb05fe386946bf7b154cd951bc6bd7a35d12d6c 100644 |
--- a/content/renderer/screen_orientation/screen_orientation_observer.cc |
+++ b/content/renderer/screen_orientation/screen_orientation_observer.cc |
@@ -11,6 +11,10 @@ namespace content { |
ScreenOrientationObserver::ScreenOrientationObserver() { |
} |
+ScreenOrientationObserver::~ScreenOrientationObserver() { |
+ StopIfObserving(); |
+} |
+ |
void ScreenOrientationObserver::Start( |
blink::WebPlatformEventListener* listener) { |
// This should never be called with a proper listener. |