Bug 1072847 - Initialize mSurface. r=BenWa, a=abillings
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Tue, 28 Oct 2014 10:08:25 -0400
changeset 225854 d5a855ee2081
parent 225853 301822ecb5fa
child 225855 b58f505f18df
push id4040
push userryanvm@gmail.com
push date2014-10-29 14:22 +0000
treeherdermozilla-beta@b58f505f18df [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersBenWa, abillings
bugs1072847
milestone34.0
Bug 1072847 - Initialize mSurface. r=BenWa, a=abillings
gfx/2d/DrawTargetCairo.cpp
--- a/gfx/2d/DrawTargetCairo.cpp
+++ b/gfx/2d/DrawTargetCairo.cpp
@@ -411,16 +411,17 @@ NeedIntermediateSurface(const Pattern& a
   if (aOptions.mAlpha == 1.0)
     return false;
 
   return true;
 }
 
 DrawTargetCairo::DrawTargetCairo()
   : mContext(nullptr)
+  , mSurface(nullptr)
   , mLockedBits(nullptr)
 {
 }
 
 DrawTargetCairo::~DrawTargetCairo()
 {
   cairo_destroy(mContext);
   if (mSurface) {