From 95777057ca1fb6e84f3586249eab48a440718ded Mon Sep 17 00:00:00 2001 From: michael starke Date: Wed, 16 Apr 2014 13:53:38 +0200 Subject: [PATCH] Using true immutable copies of for nsarray --- MacPass/MPIconHelper.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MacPass/MPIconHelper.m b/MacPass/MPIconHelper.m index 6853e4f1..fa455f77 100644 --- a/MacPass/MPIconHelper.m +++ b/MacPass/MPIconHelper.m @@ -41,7 +41,7 @@ MPIconType iconType = (MPIconType)[iconNumber integerValue]; [mutableIcons addObject:[MPIconHelper icon:iconType]]; } - icons = mutableIcons; + icons = [mutableIcons copy]; }); return icons; } @@ -64,7 +64,7 @@ } [mutableIcons addObject:iconNumber]; } - iconTypes = mutableIcons; + iconTypes = [mutableIcons copy]; }); return iconTypes; }