[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 01/01: Fix warning about infinite recursion. (bug #12398)

noreply at xfce.org noreply at xfce.org
Wed Jan 6 18:48:14 CET 2016


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 ffd8fb1bcd3ecc2ecf0bf909a86b02b249dd8602
Author: Graeme Gott <graeme at gottcode.org>
Date:   Wed Jan 6 12:46:47 2016 -0500

    Fix warning about infinite recursion. (bug #12398)
---
 panel-plugin/launcher.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/panel-plugin/launcher.cpp b/panel-plugin/launcher.cpp
index 197fd75..ee91078 100644
--- a/panel-plugin/launcher.cpp
+++ b/panel-plugin/launcher.cpp
@@ -91,7 +91,7 @@ static void replace_with_quoted_string(std::string& command, size_t& index, cons
 
 //-----------------------------------------------------------------------------
 
-static void replace_with_quoted_string(std::string& command, size_t& index, gchar* unquoted)
+static void replace_and_free_with_quoted_string(std::string& command, size_t& index, gchar* unquoted)
 {
 	replace_with_quoted_string(command, index, unquoted);
 	g_free(unquoted);
@@ -227,7 +227,7 @@ void Launcher::run(GdkScreen* screen) const
 				break;
 
 			case 'k':
-				replace_with_quoted_string(command, i, garcon_menu_item_get_uri(m_item));
+				replace_and_free_with_quoted_string(command, i, garcon_menu_item_get_uri(m_item));
 				length = command.length() - 1;
 				break;
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list