diff --git a/Foundation/CPURL.j b/Foundation/CPURL.j index e6235ab90..dc240fbaa 100644 --- a/Foundation/CPURL.j +++ b/Foundation/CPURL.j @@ -96,7 +96,8 @@ CPURLCustomIconKey = @"CPURLCustomIconKey"; - (CPArray)pathComponents { - return self.pathComponents(); + var path = self.pathComponents(); + return [path copy]; } // if absolute, returns the same as path