[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:57:02 CET 2017
This is an automated email from the git hooks/post-receive script.
gottcode pushed a commit to annotated tag v2.1.1
in repository panel-plugins/xfce4-whiskermenu-plugin.
commit 9b4dbd37d33393a7684d5ed5495ea208d5633e60
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