added missed alloc

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@8181 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Mirko Viviani 2000-11-23 00:22:23 +00:00
parent c72deb7ce3
commit cee9b5401c

View file

@ -259,7 +259,7 @@ _bundle_name_first_match(NSString* directory, NSString* name)
bundlePath = [bundlePath stringByAppendingPathComponent:
[NSString stringWithFormat: @"%@.framework", name]];
bundle = [NSBundle initWithPath: bundlePath];
bundle = [[NSBundle alloc] initWithPath: bundlePath];
bundle->_bundleType = NSBUNDLE_FRAMEWORK;
bundle->_codeLoaded = YES;
bundle->_frameworkVersion = RETAIN([frameworkClass frameworkVersion]);