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:
Wolfgang Lux 2009-02-08 21:22:36 +00:00
parent 3315ab146a
commit c91d16c371
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2009-02-08 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSWorkspace.m (-findApplications): Retain cached path of
make_services tool.
2009-02-08 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSImage.m: Fix missing header.

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];