Another local string.

This commit is contained in:
2025-08-11 02:42:06 -04:00
parent fad69219ad
commit accecfca20

View File

@ -1994,12 +1994,10 @@ static void Html_tag_open_font(DilloHtml *html, const char *tag, int tagsize)
} }
if ((attrbuf = a_Html_get_attr(html, tag, tagsize, "face"))) { if ((attrbuf = a_Html_get_attr(html, tag, tagsize, "face"))) {
fontFamily = dStrdup(attrbuf); std::string fontFamily = attrbuf;
html->styleEngine->setNonCssHint (CSS_PROPERTY_FONT_FAMILY, html->styleEngine->setNonCssHint (CSS_PROPERTY_FONT_FAMILY,
CSS_TYPE_SYMBOL, fontFamily); CSS_TYPE_SYMBOL, fontFamily.c_str());
} }
dFree(fontFamily);
} }
/* /*