Bug 1038196 - Give WinWakeLockListener a private destructor; r=bjacob
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 15 Jul 2014 16:38:31 -0400
changeset 216164 7e47b4b334473541fecb6955c358db81445d88c4
parent 216163 2e967076c3e6c2967a74f551ffdf0196cdfc8e84
child 216165 62243bd1ba2ef326058365d6443ac87981ea732e
push id515
push userraliiev@mozilla.com
push dateMon, 06 Oct 2014 12:51:51 +0000
treeherdermozilla-release@267c7a481bef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbjacob
bugs1038196
milestone33.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1038196 - Give WinWakeLockListener a private destructor; r=bjacob
widget/windows/nsAppShell.cpp
--- a/widget/windows/nsAppShell.cpp
+++ b/widget/windows/nsAppShell.cpp
@@ -29,16 +29,18 @@ using namespace mozilla::widget;
 // A wake lock listener that disables screen saver when requested by
 // Gecko. For example when we're playing video in a foreground tab we
 // don't want the screen saver to turn on.
 class WinWakeLockListener : public nsIDOMMozWakeLockListener {
 public:
   NS_DECL_ISUPPORTS;
 
 private:
+  ~WinWakeLockListener() {}
+
   NS_IMETHOD Callback(const nsAString& aTopic, const nsAString& aState) {
     bool isLocked = mLockedTopics.Contains(aTopic);
     bool shouldLock = aState.EqualsLiteral("locked-foreground");
     if (isLocked == shouldLock) {
       return NS_OK;
     }
     if (shouldLock) {
       if (!mLockedTopics.Count()) {