Bug 1246886 - initialize mMoved in move contructor. r?billm draft
authorBogdan Postelnicu <bogdan.postelnicu@softvision.ro>
Tue, 09 Feb 2016 11:21:39 +0200
changeset 329773 05bd3f58eacfa2ee8426ea5ff85607337d178adb
parent 329566 815d689a6e1e7187b10238f2f840d49201d67c2b
child 514027 1eb4cce0b6eab702d34b6f0da76cb88eb8bb187b
push id10600
push userBogdan.Postelnicu@softvision.ro
push dateTue, 09 Feb 2016 09:23:13 +0000
reviewersbillm
bugs1246886
milestone47.0a1
Bug 1246886 - initialize mMoved in move contructor. r?billm
ipc/glue/MessageChannel.cpp
--- a/ipc/glue/MessageChannel.cpp
+++ b/ipc/glue/MessageChannel.cpp
@@ -152,16 +152,17 @@ public:
         MOZ_RELEASE_ASSERT(mMessageName);
     }
 
     InterruptFrame(InterruptFrame&& aOther)
     {
         MOZ_RELEASE_ASSERT(aOther.mMessageName);
         mMessageName = aOther.mMessageName;
         aOther.mMessageName = nullptr;
+        mMoved = aOther.mMoved;
         aOther.mMoved = true;
 
         mMessageRoutingId = aOther.mMessageRoutingId;
         mMesageSemantics = aOther.mMesageSemantics;
         mDirection = aOther.mDirection;
     }
 
     ~InterruptFrame()