Browse Source

Fixes incorrect memory deallocation in effect

setaylor 11 years ago
parent
commit
4a2a4b2a79
1 changed files with 2 additions and 2 deletions
  1. 2 2
      gameplay/src/Effect.cpp

+ 2 - 2
gameplay/src/Effect.cpp

@@ -498,11 +498,11 @@ Uniform* Effect::getUniform(const char* name) const
 				uniform->_type = puniform->getType();
 				uniform->_type = puniform->getType();
 				_uniforms[name] = uniform;
 				_uniforms[name] = uniform;
 
 
-				delete parentname;
+				SAFE_DELETE_ARRAY(parentname);
 				return uniform;
 				return uniform;
 			}
 			}
 		}
 		}
-		delete parentname;
+		SAFE_DELETE_ARRAY(parentname);
     }
     }
 
 
 	// No uniform variable found - return NULL
 	// No uniform variable found - return NULL