Fixed errant leak fix.
parent
605b261646
commit
b655ea2da1
|
@ -531,7 +531,11 @@
|
||||||
GCC_ENABLE_FIX_AND_CONTINUE = YES;
|
GCC_ENABLE_FIX_AND_CONTINUE = YES;
|
||||||
GCC_MODEL_TUNING = G5;
|
GCC_MODEL_TUNING = G5;
|
||||||
GCC_OPTIMIZATION_LEVEL = 0;
|
GCC_OPTIMIZATION_LEVEL = 0;
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = "";
|
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||||
|
"HAS_PSXCPU=1",
|
||||||
|
"LSB_FIRST=1",
|
||||||
|
"PATH_MAX=1024",
|
||||||
|
);
|
||||||
HEADER_SEARCH_PATHS = aosdk;
|
HEADER_SEARCH_PATHS = aosdk;
|
||||||
INFOPLIST_FILE = Info.plist;
|
INFOPLIST_FILE = Info.plist;
|
||||||
INSTALL_PATH = "$(HOME)/Library/Frameworks";
|
INSTALL_PATH = "$(HOME)/Library/Frameworks";
|
||||||
|
@ -551,7 +555,11 @@
|
||||||
FRAMEWORK_VERSION = A;
|
FRAMEWORK_VERSION = A;
|
||||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||||
GCC_MODEL_TUNING = G5;
|
GCC_MODEL_TUNING = G5;
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = "";
|
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||||
|
"HAS_PSXCPU=1",
|
||||||
|
"LSB_FIRST=1",
|
||||||
|
"PATH_MAX=1024",
|
||||||
|
);
|
||||||
HEADER_SEARCH_PATHS = aosdk;
|
HEADER_SEARCH_PATHS = aosdk;
|
||||||
INFOPLIST_FILE = Info.plist;
|
INFOPLIST_FILE = Info.plist;
|
||||||
INSTALL_PATH = "$(HOME)/Library/Frameworks";
|
INSTALL_PATH = "$(HOME)/Library/Frameworks";
|
||||||
|
|
|
@ -191,6 +191,7 @@ int32 psf_start(uint8 *buffer, uint32 length)
|
||||||
|
|
||||||
// Dispose the corlett structure for the lib - we don't use it
|
// Dispose the corlett structure for the lib - we don't use it
|
||||||
free(lib);
|
free(lib);
|
||||||
|
free(lib_decoded);
|
||||||
}
|
}
|
||||||
|
|
||||||
// now patch the main file into RAM OVER the libraries (but not the aux lib)
|
// 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(file);
|
||||||
free(lib_decoded);
|
|
||||||
|
|
||||||
// Finally, set psfby tag
|
// Finally, set psfby tag
|
||||||
strcpy(psfby, "n/a");
|
strcpy(psfby, "n/a");
|
||||||
|
|
|
@ -256,7 +256,7 @@ int ao_get_lib(char *fn, uint8 **buf, uint64 *length)
|
||||||
requestAmount = maxFrames;
|
requestAmount = maxFrames;
|
||||||
}
|
}
|
||||||
|
|
||||||
(*types[type].gen)((int16_t *)((int32_t *)buf + amountRead), requestAmount);
|
(*types[type].gen)((int16_t *)((uint32_t *)buf + amountRead), requestAmount);
|
||||||
|
|
||||||
amountRead += requestAmount;
|
amountRead += requestAmount;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue