Revision: 5688 http://geany.svn.sourceforge.net/geany/?rev=5688&view=rev Author: colombanw Date: 2011-04-03 17:53:06 +0000 (Sun, 03 Apr 2011)
Log Message: ----------- Fix a leak and reword an error message
Modified Paths: -------------- trunk/src/tools.c
Modified: trunk/src/tools.c =================================================================== --- trunk/src/tools.c 2011-04-03 17:52:49 UTC (rev 5687) +++ trunk/src/tools.c 2011-04-03 17:53:06 UTC (rev 5688) @@ -113,13 +113,14 @@ if (argc > 0 && cc_exists_command(argv[0])) stock_id = GTK_STOCK_YES; else - err = g_error_new( G_FILE_ERROR, G_FILE_ERROR_NOENT, _("Command not found")); + err = g_error_new(G_FILE_ERROR, G_FILE_ERROR_NOENT, _("Command not found")); + g_strfreev(argv); }
if (err != NULL) { stock_id = GTK_STOCK_NO; - tooltip = g_strdup_printf(_("Command cannot be found/parsed: %s"), err->message); + tooltip = g_strdup_printf(_("Invalid command: %s"), err->message); g_error_free(err); }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.