Bug 1319456: Hold DrawEventRecorders in the correct structure in PathRecording. r=bas
authorBob Owen <bobowencode@gmail.com>
Fri, 09 Dec 2016 02:25:50 +0000
changeset 325470 b57b890350b0e607b4d9b4ca266a761d20fae15e
parent 325469 9f61239c41a03f33936e696e487a263336cf78b3
child 325471 f5616da76211c2121d4a4d2e9ba8b59ba9bed20e
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersbas
bugs1319456
milestone53.0a1
Bug 1319456: Hold DrawEventRecorders in the correct structure in PathRecording. r=bas MozReview-Commit-ID: 1bJxJnKXzVc
gfx/2d/PathRecording.h
--- a/gfx/2d/PathRecording.h
+++ b/gfx/2d/PathRecording.h
@@ -128,15 +128,15 @@ private:
   friend class DrawTargetRecording;
   friend class RecordedPathCreation;
 
   RefPtr<Path> mPath;
   std::vector<PathOp> mPathOps;
   FillRule mFillRule;
 
   // Event recorders that have this path in their event stream.
-  std::vector<DrawEventRecorderPrivate*> mStoredRecorders;
+  std::vector<RefPtr<DrawEventRecorderPrivate>> mStoredRecorders;
 };
 
 } // namespace gfx
 } // namespace mozilla
 
 #endif /* MOZILLA_GFX_PATHRECORDING_H_ */