SF.net SVN: geany:[5154] trunk/src/search.c
ntrel at users.sourceforge.net
ntrel at xxxxx
Thu Aug 12 17:14:48 UTC 2010
Revision: 5154
http://geany.svn.sourceforge.net/geany/?rev=5154&view=rev
Author: ntrel
Date: 2010-08-12 17:14:47 +0000 (Thu, 12 Aug 2010)
Log Message:
-----------
Avoid duplicating string (just for neatness).
Modified Paths:
--------------
trunk/src/search.c
Modified: trunk/src/search.c
===================================================================
--- trunk/src/search.c 2010-08-12 16:51:55 UTC (rev 5153)
+++ trunk/src/search.c 2010-08-12 17:14:47 UTC (rev 5154)
@@ -1436,7 +1436,7 @@
i++; /* correct for tool_prefs.grep_cmd */
argv_prefix[i++] = g_strdup("--");
- argv_prefix[i++] = g_strdup(search_text);
+ argv_prefix[i++] = search_text;
/* finally add the arguments(files to be searched) */
if (strstr(argv_prefix[1], "r")) /* recursive option set */
@@ -1455,7 +1455,6 @@
if (argv == NULL) /* no files */
{
- g_free(search_text);
return FALSE;
}
@@ -1494,7 +1493,6 @@
utils_free_pointers(2, str, utf8_str, NULL);
ret = TRUE;
}
- g_free(search_text);
g_strfreev(argv);
return ret;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list