summaryrefslogtreecommitdiffstats
path: root/src/desktop-style.cpp
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2018-11-05 22:37:54 +0000
committerThomas Holder <thomas@thomas-holder.de>2018-11-05 22:37:54 +0000
commit8fe8df064850bdaf5cd0c6015430c4b12132c8ab (patch)
tree2ef547a667ff1f1a3ba8fc66dc8350b5ae3c4089 /src/desktop-style.cpp
parentReplacement for xmlBuildRelativeURI (diff)
downloadinkscape-8fe8df064850bdaf5cd0c6015430c4b12132c8ab.tar.gz
inkscape-8fe8df064850bdaf5cd0c6015430c4b12132c8ab.zip
remove Inkscape::URI::toString
Diffstat (limited to 'src/desktop-style.cpp')
-rw-r--r--src/desktop-style.cpp8
1 files changed, 2 insertions, 6 deletions
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<SPItem*> &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