Fix valgrind errors

This commit is contained in:
simon.kagstrom 2010-02-09 11:41:30 +00:00
parent 5bc596f617
commit 9b7517fde5
2 changed files with 2 additions and 1 deletions

View File

@ -66,7 +66,7 @@ enum {
* Constructors
*/
MOS6526::MOS6526(MOS6510 *CPU) : the_cpu(CPU) {}
MOS6526::MOS6526(MOS6510 *CPU) : the_cpu(CPU) { has_new_cra = false; has_new_crb = false; }
MOS6526_1::MOS6526_1(MOS6510 *CPU, MOS6569 *VIC) : MOS6526(CPU), the_vic(VIC) {}
MOS6526_2::MOS6526_2(MOS6510 *CPU, MOS6569 *VIC, MOS6502_1541 *CPU1541) : MOS6526(CPU), the_vic(VIC), the_cpu_1541(CPU1541) {}

View File

@ -66,6 +66,7 @@ void DigitalRenderer::init_sound(void)
if (arg < 30000 || arg > 45000)
return;
sndbufsize = 0;
ioctl(devfd, SNDCTL_DSP_GETBLKSIZE, &sndbufsize);
sound_buffer = new int16[sndbufsize];
ready = true;