diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2014-03-03 21:44:59 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2014-03-03 21:44:59 +0000 |
| commit | ad5c6ceab1420aabbe4c751080bce8b2363abd11 (patch) | |
| tree | 43972a4d86b3e463b0110d009bd1aba10d154249 /src/extension | |
| parent | code cleanup (diff) | |
| download | inkscape-ad5c6ceab1420aabbe4c751080bce8b2363abd11.tar.gz inkscape-ad5c6ceab1420aabbe4c751080bce8b2363abd11.zip | |
More memory leak fixes (Bug #1275170)
(bzr r13105)
Diffstat (limited to 'src/extension')
| -rw-r--r-- | src/extension/internal/javafx-out.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/extension/internal/javafx-out.cpp b/src/extension/internal/javafx-out.cpp index 035a6f0aa..e51e8d539 100644 --- a/src/extension/internal/javafx-out.cpp +++ b/src/extension/internal/javafx-out.cpp @@ -396,12 +396,14 @@ bool JavaFXOutput::doStyle(SPStyle *style) } else if (fill.isPaintserver()){ if (fill.value.href && fill.value.href->getURI() ){ - String uri = fill.value.href->getURI()->toString(); + gchar *str = fill.value.href->getURI()->toString(); + String uri = (str ? str : ""); /* trim the anchor '#' from the front */ if (uri.size() > 0 && uri[0]=='#') { uri = uri.substr(1); } out(" fill: %s()\n", sanatize(uri).c_str()); + g_free(str); } } |
