[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 09/12: FIXED: Memory leak when editing launcher.

noreply at xfce.org noreply at xfce.org
Wed Mar 1 15:56:49 CET 2017


This is an automated email from the git hooks/post-receive script.

gottcode pushed a commit to annotated tag v1.7.1
in repository panel-plugins/xfce4-whiskermenu-plugin.

commit 7ca908492441078b8ccf94c6aa0976aa4be1ad92
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 40c7c38..534e929 100644
--- a/panel-plugin/page.cpp
+++ b/panel-plugin/page.cpp
@@ -433,7 +433,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