Fixed errant leak fix.

CQTexperiment
vspader 2009-03-01 12:22:55 -08:00
parent 605b261646
commit b655ea2da1
3 changed files with 12 additions and 4 deletions

View File

@ -531,7 +531,11 @@
GCC_ENABLE_FIX_AND_CONTINUE = YES;
GCC_MODEL_TUNING = G5;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = "";
GCC_PREPROCESSOR_DEFINITIONS = (
"HAS_PSXCPU=1",
"LSB_FIRST=1",
"PATH_MAX=1024",
);
HEADER_SEARCH_PATHS = aosdk;
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Library/Frameworks";
@ -551,7 +555,11 @@
FRAMEWORK_VERSION = A;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_MODEL_TUNING = G5;
GCC_PREPROCESSOR_DEFINITIONS = "";
GCC_PREPROCESSOR_DEFINITIONS = (
"HAS_PSXCPU=1",
"LSB_FIRST=1",
"PATH_MAX=1024",
);
HEADER_SEARCH_PATHS = aosdk;
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Library/Frameworks";

View File

@ -191,6 +191,7 @@ int32 psf_start(uint8 *buffer, uint32 length)
// Dispose the corlett structure for the lib - we don't use it
free(lib);
free(lib_decoded);
}
// now patch the main file into RAM OVER the libraries (but not the aux lib)
@ -259,7 +260,6 @@ int32 psf_start(uint8 *buffer, uint32 length)
}
free(file);
free(lib_decoded);
// Finally, set psfby tag
strcpy(psfby, "n/a");

View File

@ -256,7 +256,7 @@ int ao_get_lib(char *fn, uint8 **buf, uint64 *length)
requestAmount = maxFrames;
}
(*types[type].gen)((int16_t *)((int32_t *)buf + amountRead), requestAmount);
(*types[type].gen)((int16_t *)((uint32_t *)buf + amountRead), requestAmount);
amountRead += requestAmount;
}