From f9a958922e109295c9f4f3c12e5716ebf07a6dad Mon Sep 17 00:00:00 2001 From: buliabyak <> Date: Sat, 28 Sep 2013 11:50:34 -0300 Subject: return value of g_utf16_to_utf8 was leaking here (bzr r12609) --- src/inkscape.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/inkscape.cpp') 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 -- cgit v1.2.3 From 6e867cb6aa8b44a3bb9f2dec4361c67cefc8ca8f Mon Sep 17 00:00:00 2001 From: buliabyak <> Date: Sat, 28 Sep 2013 16:20:27 -0300 Subject: effects don't need to merge into menus if we're running without gui; with this we can purge a redundant reading of menus skeleton, which leaked its xml tree (bzr r12616) --- src/inkscape.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/inkscape.cpp') diff --git a/src/inkscape.cpp b/src/inkscape.cpp index cce4ca5b9..228841362 100644 --- a/src/inkscape.cpp +++ b/src/inkscape.cpp @@ -502,7 +502,7 @@ inkscape_init (SPObject * object) new (&inkscape->document_set) std::map(); new (&inkscape->selection_models) std::map(); - inkscape->menus = sp_repr_read_mem (_(menus_skeleton), MENUS_SKELETON_SIZE, NULL); + inkscape->menus = NULL; inkscape->desktops = NULL; inkscape->dialogs_toggle = TRUE; inkscape->mapalt = GDK_MOD1_MASK; -- cgit v1.2.3