summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbuliabyak <>2013-09-28 14:50:34 +0000
committerbuliabyak <>2013-09-28 14:50:34 +0000
commitf9a958922e109295c9f4f3c12e5716ebf07a6dad (patch)
tree9c74b06bc8d2c476979f8c4346588b301f2f1a43 /src
parenton hiding, texts must _clearFlow to release arena items, otherwise they leak (diff)
downloadinkscape-f9a958922e109295c9f4f3c12e5716ebf07a6dad.tar.gz
inkscape-f9a958922e109295c9f4f3c12e5716ebf07a6dad.zip
return value of g_utf16_to_utf8 was leaking here
(bzr r12609)
Diffstat (limited to 'src')
-rw-r--r--src/inkscape.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index e1cabd2d5..cce4ca5b9 100644
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
@@ -1483,7 +1483,9 @@ profile_path(const char *filename)
}
if (prefdir) {
- prefdir = g_build_filename(prefdir, INKSCAPE_PROFILE_DIR, NULL);
+ const char *prefdir_profile = g_build_filename(prefdir, INKSCAPE_PROFILE_DIR, NULL);
+ g_free((void *)prefdir);
+ prefdir = prefdir_profile;
}
}
#endif