VirtualBox

Changeset 60248 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Mar 29, 2016 3:57:49 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
106286
Message:

Devices/PC/DevPit-i8254.cpp: fix PC speaker passthrough

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevPit-i8254.cpp

    r59523 r60248  
    297297        int errno_eviocgsnd0 = 0;
    298298        int errno_kiocsound = 0;
    299         if (ioctl(fd, EVIOCGSND(0)) != -1)
     299        if (ioctl(fd, EVIOCGSND(0)) == -1)
    300300        {
    301301            errno_eviocgsnd0 = errno;
     
    14051405        LogRel(("PIT: speaker: emulation deactivated\n"));
    14061406#endif
    1407         RTStrFree(pszPassthroughSpeakerDevice);
    1408         pszPassthroughSpeakerDevice = NULL;
     1407        if (pszPassthroughSpeakerDevice)
     1408        {
     1409            MMR3HeapFree(pszPassthroughSpeakerDevice);
     1410            pszPassthroughSpeakerDevice = NULL;
     1411        }
    14091412    }
    14101413    pThis->channels[0].irq = u8Irq;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette