bool shapeGenStrokeRle(SwShape* shape, const Shape* sdata, const Matrix* transform, const SwSize& clip)
{
SwOutline* shapeOutline = nullptr;
+ bool freeOutline = false;
//Dash Style Stroke
if (sdata->strokeDash(nullptr) > 0) {
shapeOutline = _genDashOutline(sdata, transform);
if (!shapeOutline) return false;
+ freeOutline = true;
//Normal Style stroke
} else {
if (!shape->outline) {
shape->strokeRle = rleRender(strokeOutline, bbox, clip, true);
+ if (freeOutline) _delOutline(shapeOutline);
_delOutline(strokeOutline);
return true;