Bug 818241 - Initialize mCg to nullptr. r=jmuizelaar
authorMilan Sreckovic <msreckovic@mozilla.com>
Tue, 29 Jan 2013 10:22:52 -0500
changeset 120389 944d0425759256ed26c4f0e17557890d91e22846
parent 120388 ea7f9fd355e9f5256250dc9b1d0b93981b56acb3
child 120390 796e350770b8e69a0a0b19c31091f1c70c2f87e7
push id24251
push userryanvm@gmail.com
push dateThu, 31 Jan 2013 20:56:22 +0000
treeherdermozilla-central@683b08dc1afd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmuizelaar
bugs818241
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 818241 - Initialize mCg to nullptr. r=jmuizelaar
gfx/2d/DrawTargetCG.cpp
--- a/gfx/2d/DrawTargetCG.cpp
+++ b/gfx/2d/DrawTargetCG.cpp
@@ -117,17 +117,17 @@ CGBlendMode ToBlendMode(CompositionOp op
     default:
       mode = kCGBlendModeNormal;
   }
   return mode;
 }
 
 
 
-DrawTargetCG::DrawTargetCG() : mSnapshot(nullptr)
+DrawTargetCG::DrawTargetCG() : mSnapshot(nullptr), mCg(nullptr)
 {
 }
 
 DrawTargetCG::~DrawTargetCG()
 {
   MarkChanged();
 
   // We need to conditionally release these because Init can fail without initializing these.