(svn r15120) -Fix: more mem-leak fixes

This commit is contained in:
truebrain
2009-01-17 14:54:24 +00:00
parent 2cc217cabf
commit fe90077681
2 changed files with 12 additions and 3 deletions

View File

@@ -359,7 +359,10 @@ int AIInfo::GetSettingDefaultValue(const char *name)
AILibrary *library = new AILibrary();
SQInteger res = AIFileInfo::Constructor(vm, library, true);
if (res != 0) return res;
if (res != 0) {
delete library;
return res;
}
/* Register the Library to the base system */
library->base->RegisterLibrary(library);