diff --git a/dom/system/gonk/AutoMounter.cpp b/dom/system/gonk/AutoMounter.cpp index c37a4948cd35..cc808d47ddfa 100644 --- a/dom/system/gonk/AutoMounter.cpp +++ b/dom/system/gonk/AutoMounter.cpp @@ -22,6 +22,7 @@ #include "base/message_loop.h" #include "mozilla/FileUtils.h" #include "mozilla/Hal.h" +#include "mozilla/StaticPtr.h" #include "nsAutoPtr.h" #include "nsMemory.h" #include "nsString.h" @@ -285,7 +286,7 @@ private: VolumeArray mAutoVolume; }; -static RefPtr sAutoMounter; +static StaticRefPtr sAutoMounter; /***************************************************************************/ @@ -524,8 +525,8 @@ public: } }; -static RefPtr sUsbCableObserver; -static RefPtr sAutoMounterSetting; +static StaticRefPtr sUsbCableObserver; +static StaticRefPtr sAutoMounterSetting; void InitAutoMounter()