Bug 836107 - Initialize mTask, a member variable of UnixSocketImpl, with nullptr. r=qdot, a=tef+
authorEric Chou <echou@mozilla.com>
Thu, 31 Jan 2013 22:43:45 +0800
changeset 118407 9fa5629ee60cd3219d0f5fa33cda726b93a09c5b
parent 118406 4e99ce0836e9bbd9f4c7ae4e4092f74d7bc9bde6
child 118408 62c030520097b5e0836c64df844f683bef63b8d2
push id406
push userryanvm@gmail.com
push dateThu, 31 Jan 2013 23:06:28 +0000
reviewersqdot, tef
bugs836107
milestone18.0
Bug 836107 - Initialize mTask, a member variable of UnixSocketImpl, with nullptr. r=qdot, a=tef+
ipc/unixsocket/UnixSocket.cpp
--- a/ipc/unixsocket/UnixSocket.cpp
+++ b/ipc/unixsocket/UnixSocket.cpp
@@ -42,16 +42,17 @@ namespace ipc {
 
 class UnixSocketImpl : public MessageLoopForIO::Watcher
 {
 public:
   UnixSocketImpl(UnixSocketConsumer* aConsumer, UnixSocketConnector* aConnector,
                  const nsACString& aAddress)
     : mConsumer(aConsumer)
     , mIOLoop(nullptr)
+    , mTask(nullptr)
     , mFd(-1)
     , mConnector(aConnector)
     , mCurrentTaskIsCanceled(false)
     , mAddress(aAddress)
   {
   }
 
   ~UnixSocketImpl()