Retain cached path of make_services tool in NSWorkspace.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27817 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
wlux 2009-02-08 21:22:36 +00:00
parent 34ca8b7b93
commit b295fc79eb
2 changed files with 6 additions and 1 deletions

View file

@ -1274,7 +1274,7 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
*/
if (path == nil)
{
path = [NSTask launchPathForTool: @"make_services"];
path = [[NSTask launchPathForTool: @"make_services"] retain];
}
task = [NSTask launchedTaskWithLaunchPath: path
arguments: nil];