diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2014-02-10 08:46:54 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2014-02-10 08:46:54 +0000 |
| commit | 977f22bf235db32be3a88baa8bde24d002714073 (patch) | |
| tree | e5af7c3e8cf46f70d1317eef4523f657c90675c1 /src/desktop-style.cpp | |
| parent | Removing hack for force show red lines in bspline mode (diff) | |
| parent | Fixing format-security errors in text debug code. (diff) | |
| download | inkscape-977f22bf235db32be3a88baa8bde24d002714073.tar.gz inkscape-977f22bf235db32be3a88baa8bde24d002714073.zip | |
update to trunk
(bzr r11950.1.252)
Diffstat (limited to 'src/desktop-style.cpp')
| -rw-r--r-- | src/desktop-style.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/desktop-style.cpp b/src/desktop-style.cpp index 00b9db7d0..bab9635a9 100644 --- a/src/desktop-style.cpp +++ b/src/desktop-style.cpp @@ -587,11 +587,15 @@ objects_query_fillstroke (GSList *objects, SPStyle *style_res, bool const isfill paint_res->colorSet = paint->colorSet; paint_res->currentcolor = paint->currentcolor; if (paint_res->set && paint_effectively_set && paint->isPaintserver()) { // copy the server + gchar const *string = NULL; // memory leak results if style->get* called inside sp_style_set_to_uri_string. if (isfill) { - sp_style_set_to_uri_string (style_res, true, style->getFillURI()); + string = style->getFillURI(); + sp_style_set_to_uri_string (style_res, true, string); } else { - sp_style_set_to_uri_string (style_res, false, style->getStrokeURI()); + string = style->getStrokeURI(); + sp_style_set_to_uri_string (style_res, false, string); } + 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 |
