mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-22 03:19:24 +01:00
Fix valgrind errors
This commit is contained in:
parent
5bc596f617
commit
9b7517fde5
@ -66,7 +66,7 @@ enum {
|
|||||||
* Constructors
|
* 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_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) {}
|
MOS6526_2::MOS6526_2(MOS6510 *CPU, MOS6569 *VIC, MOS6502_1541 *CPU1541) : MOS6526(CPU), the_vic(VIC), the_cpu_1541(CPU1541) {}
|
||||||
|
|
||||||
|
@ -66,6 +66,7 @@ void DigitalRenderer::init_sound(void)
|
|||||||
if (arg < 30000 || arg > 45000)
|
if (arg < 30000 || arg > 45000)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
sndbufsize = 0;
|
||||||
ioctl(devfd, SNDCTL_DSP_GETBLKSIZE, &sndbufsize);
|
ioctl(devfd, SNDCTL_DSP_GETBLKSIZE, &sndbufsize);
|
||||||
sound_buffer = new int16[sndbufsize];
|
sound_buffer = new int16[sndbufsize];
|
||||||
ready = true;
|
ready = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user