[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 01/01: FIXED: Memory leak when editing launcher.
noreply at xfce.org
noreply at xfce.org
Tue Feb 21 11:24:26 CET 2017
This is an automated email from the git hooks/post-receive script.
gottcode pushed a commit to branch master
in repository panel-plugins/xfce4-whiskermenu-plugin.
commit b79fc2be5fffa526bb1d75288ddc7660fe72b27c
Author: Graeme Gott <graeme at gottcode.org>
Date: Tue Feb 21 05:19:29 2017 -0500
FIXED: Memory leak when editing launcher.
---
panel-plugin/page.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/panel-plugin/page.cpp b/panel-plugin/page.cpp
index 695db4f..d73ec7b 100644
--- a/panel-plugin/page.cpp
+++ b/panel-plugin/page.cpp
@@ -441,7 +441,9 @@ void Page::edit_selected()
m_window->hide();
GError* error = NULL;
- gchar* command = g_strconcat("exo-desktop-item-edit ", launcher->get_uri(), NULL);
+ gchar* uri = launcher->get_uri();
+ gchar* command = g_strconcat("exo-desktop-item-edit ", uri, NULL);
+ g_free(uri);
if (g_spawn_command_line_async(command, &error) == false)
{
xfce_dialog_show_error(NULL, error, _("Unable to edit launcher."));
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list