Bug 725918 - Part 4: Use forget(); r=dholbert

This commit is contained in:
Ms2ger 2012-02-21 10:34:02 +01:00
parent fda1f0e9b1
commit e6b6e04b34

View File

@ -918,8 +918,7 @@ nsSVGGlyphFrame::SetupCairoState(gfxContext *aContext, gfxPattern **aStrokePatte
NS_GET_A(color) / 255.0 * opacity)); NS_GET_A(color) / 255.0 * opacity));
} }
*aStrokePattern = nsnull; strokePattern.forget(aStrokePattern);
strokePattern.swap(*aStrokePattern);
} }
if (SetupCairoFill(aContext)) { if (SetupCairoFill(aContext)) {