diff --git a/gfx/cairo/cairo/src/cairo-d2d-surface.cpp b/gfx/cairo/cairo/src/cairo-d2d-surface.cpp index 1422691e7e7..daa7ac93c23 100644 --- a/gfx/cairo/cairo/src/cairo-d2d-surface.cpp +++ b/gfx/cairo/cairo/src/cairo-d2d-surface.cpp @@ -779,7 +779,7 @@ _cairo_d2d_create_brush_for_pattern(cairo_d2d_surface_t *d2dsurf, } else { extendMode = D2D1_EXTEND_MODE_CLAMP; } - ID2D1Bitmap *sourceBitmap; + RefPtr sourceBitmap; bool tiled = false; unsigned int xoffset = 0; unsigned int yoffset = 0;