mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
optimisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4223 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8420776152
commit
a7505ae333
1 changed files with 6 additions and 6 deletions
|
@ -456,14 +456,14 @@ _bundle_load_callback(Class theClass, Category *theCategory)
|
|||
avoid deallocating any bundle */
|
||||
- (oneway void) release
|
||||
{
|
||||
if (self == NSMapGet(_releasedBundles, _path))
|
||||
{
|
||||
[NSException raise: NSGenericException
|
||||
format: @"Bundle for path %@ released too many times", _path];
|
||||
}
|
||||
|
||||
if ([self retainCount] == 0)
|
||||
{
|
||||
if (self == NSMapGet(_releasedBundles, _path))
|
||||
{
|
||||
[NSException raise: NSGenericException
|
||||
format: @"Bundle for path %@ released too many times", _path];
|
||||
}
|
||||
|
||||
/* Cache all bundles */
|
||||
if (_bundleType == NSBUNDLE_APPLICATION
|
||||
|| _bundleType == NSBUNDLE_LIBRARY
|
||||
|
|
Loading…
Reference in a new issue