diff --git a/gfx/cairo/cairo/src/cairo-d2d-surface.cpp b/gfx/cairo/cairo/src/cairo-d2d-surface.cpp index 16469854358..bb825945e47 100644 --- a/gfx/cairo/cairo/src/cairo-d2d-surface.cpp +++ b/gfx/cairo/cairo/src/cairo-d2d-surface.cpp @@ -1896,6 +1896,7 @@ _cairo_d2d_stroke(void *surface, if (!brush) { strokeStyle->Release(); + d2dpath->Release(); return CAIRO_INT_STATUS_UNSUPPORTED; } d2dsurf->rt->DrawGeometry(d2dpath, brush, (FLOAT)style->line_width, strokeStyle);