vcl/unx/gtk/gtksalframe.cxx | 2 ++ vcl/unx/gtk3/gtk3gtkframe.cxx | 2 ++ 2 files changed, 4 insertions(+)
New commits: commit 1f30385e0a415fc5b053ef4831eb54841b837923 Author: Takeshi Abe <t...@fixedpoint.jp> Date: Fri Jan 13 23:35:01 2017 +0900 vcl: Fix memory leaks Change-Id: Id2e1b945d17abeffd35828ffde6eba821de0cefe Reviewed-on: https://gerrit.libreoffice.org/33047 Reviewed-by: Julien Nabet <serval2...@yahoo.fr> Tested-by: Julien Nabet <serval2...@yahoo.fr> diff --git a/vcl/unx/gtk/gtksalframe.cxx b/vcl/unx/gtk/gtksalframe.cxx index 1f1a814..2777c36 100644 --- a/vcl/unx/gtk/gtksalframe.cxx +++ b/vcl/unx/gtk/gtksalframe.cxx @@ -544,6 +544,8 @@ static void activate_uno(GSimpleAction *action, GVariant*, gpointer) if (strcmp(strval, "New") == 0) { + g_free(strval); + uno::Reference<frame::XModuleManager2> xModuleManager(frame::ModuleManager::create(xContext)); OUString aModuleId(xModuleManager->identify(xFrame)); if (aModuleId.isEmpty()) diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx index 3f49b65..d3a0310 100644 --- a/vcl/unx/gtk3/gtk3gtkframe.cxx +++ b/vcl/unx/gtk3/gtk3gtkframe.cxx @@ -550,6 +550,8 @@ static void activate_uno(GSimpleAction *action, GVariant*, gpointer) if (strcmp(strval, "New") == 0) { + g_free(strval); + uno::Reference<frame::XModuleManager2> xModuleManager(frame::ModuleManager::create(xContext)); OUString aModuleId(xModuleManager->identify(xFrame)); if (aModuleId.isEmpty()) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits