From 8fe8df064850bdaf5cd0c6015430c4b12132c8ab Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Mon, 5 Nov 2018 23:37:54 +0100 Subject: remove Inkscape::URI::toString --- src/desktop-style.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/desktop-style.cpp') diff --git a/src/desktop-style.cpp b/src/desktop-style.cpp index ae1863723..ae2afe141 100644 --- a/src/desktop-style.cpp +++ b/src/desktop-style.cpp @@ -627,15 +627,11 @@ objects_query_fillstroke (const std::vector &objects, SPStyle *style_re paint_res->colorSet = paint->colorSet; paint_res->paintOrigin = paint->paintOrigin; if (paint_res->set && paint_effectively_set && paint->isPaintserver()) { // copy the server - gchar const *string = nullptr; // memory leak results if style->get* called inside sp_style_set_to_uri_string. if (isfill) { - string = style->getFillURI(); - sp_style_set_to_uri_string (style_res, true, string); + sp_style_set_to_uri(style_res, true, style->getFillURI()); } else { - string = style->getStrokeURI(); - sp_style_set_to_uri_string (style_res, false, string); + sp_style_set_to_uri(style_res, false, style->getStrokeURI()); } - if(string)g_free((void *) string); } paint_res->set = paint_effectively_set; style_res->fill_rule.computed = style->fill_rule.computed; // no averaging on this, just use the last one -- cgit v1.2.3