diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index ad65d17214..6f6608ab62 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -484,7 +484,7 @@ inline bool skPaint2GrPaintNoShader(SkGpuDevice* dev, SkXfermode::Coeff dm = SkXfermode::kISA_Coeff; SkXfermode* mode = skPaint.getXfermode(); - GrEffectRef* xferEffect; + GrEffectRef* xferEffect = NULL; if (SkXfermode::AsNewEffect(mode, dev->context(), &xferEffect, &sm, &dm)) { // We're not ready for xfermode effects yet GrAssert(NULL == xferEffect);