Bug 1317258 - Call HoldJSObjects in VRFrameData's ctor. r=smaug, a=al
authorAndrew McCreight <continuation@gmail.com>
Thu, 17 Nov 2016 15:37:25 +0100
changeset 352472 04449274c3e1ec7f33a3256b6e9ce2e1e43e7c8c
parent 352471 b77fb8918a6d260b50eb27921b1b27096d382578
child 352473 8a41b1669fbaf1b172f8fd20a535984c472ad623
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug, al
bugs1317258
milestone52.0a2
Bug 1317258 - Call HoldJSObjects in VRFrameData's ctor. r=smaug, a=al
dom/vr/VRDisplay.cpp
--- a/dom/vr/VRDisplay.cpp
+++ b/dom/vr/VRDisplay.cpp
@@ -632,16 +632,17 @@ NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(V
 
 VRFrameData::VRFrameData(nsISupports* aParent)
   : mParent(aParent)
   , mLeftProjectionMatrix(nullptr)
   , mLeftViewMatrix(nullptr)
   , mRightProjectionMatrix(nullptr)
   , mRightViewMatrix(nullptr)
 {
+  mozilla::HoldJSObjects(this);
   mPose = new VRPose(aParent);
 }
 
 VRFrameData::~VRFrameData()
 {
   mozilla::DropJSObjects(this);
 }