SCI: Add some fixmes noted by salty-horse.

svn-id: r44513
This commit is contained in:
Willem Jan Palenstijn 2009-10-01 11:06:38 +00:00
parent 5a8b81119b
commit 7d6848dfa3
2 changed files with 4 additions and 1 deletions

View file

@ -2719,7 +2719,9 @@ bool Console::cmdAddresses(int argc, const char **argv) {
return true;
}
int parse_reg_t(EngineState *s, const char *str, reg_t *dest) { // Returns 0 on success
// Returns 0 on success
int parse_reg_t(EngineState *s, const char *str, reg_t *dest) {
// FIXME: Stop this function from changing str.
int rel_offsetting = 0;
const char *offsetting = NULL;
// Non-NULL: Parse end of string for relative offsets

View file

@ -565,6 +565,7 @@ static void ami_event(sfx_softseq_t *self, byte command, int argc, byte *argv) {
void ami_poll(sfx_softseq_t *self, byte *dest, int len) {
int i, j;
int16 *buf = (int16 *) dest;
// FIXME: memleak
int16 *buffers = (int16*)malloc(len * 2 * CHANNELS_NR);
memset(buffers, 0, len * 2 * CHANNELS_NR);