autorelease an id

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3212 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
cmdrjames 2010-04-24 12:01:15 +00:00
parent f4e872077a
commit 07d8cfeb53

View File

@ -262,7 +262,7 @@ static void AddTexture(NSMutableDictionary *uniforms, NSMutableArray *textures,
bindingTarget:(id<OOWeakReferenceSupport>)object
forSmoothedMesh:(BOOL)smooth
{
id result = nil;
id result = nil;
#if OO_SHADERS
@ -306,6 +306,7 @@ static void AddTexture(NSMutableDictionary *uniforms, NSMutableArray *textures,
[configuration oo_emissionAndIlluminationMapSpecifier] != nil)
{
result = [[OOMultiTextureMaterial alloc] initWithName:name configuration:configuration];
[result autorelease];
}
}
#endif