Permalink
Browse files

Do not call dlclose on dynamic library you do not want to be removed …

…from the address space
  • Loading branch information...
1 parent 980bd5f commit 02ad58b36dd9c3fb81da006f7b1954cae119be0d @0xced committed Jun 20, 2012
Showing with 0 additions and 1 deletion.
  1. +0 −1 Classes/IPAArchive.m
View
@@ -43,7 +43,6 @@ + (void) initialize
NSString *root = [[[NSProcessInfo processInfo] environment] objectForKey:@"IPHONE_SIMULATOR_ROOT"] ?: @"";
void *MobileIcons = dlopen([[root stringByAppendingPathComponent:@"/System/Library/PrivateFrameworks/MobileIcons.framework/MobileIcons"] fileSystemRepresentation], RTLD_NOW);
LICreateIconForImage = dlsym(MobileIcons, "LICreateIconForImage");
- dlclose(MobileIcons);
}
- (id) initWithPath:(NSString *)ipaPath;

0 comments on commit 02ad58b

Please sign in to comment.