diff options
author | Justin McPherson <justin.mcpherson@nokia.com> | 2010-05-12 00:53:41 (GMT) |
---|---|---|
committer | Justin McPherson <justin.mcpherson@nokia.com> | 2010-05-12 01:07:00 (GMT) |
commit | 60f6dfc230cac169fa06969383a53fc433e9dc2b (patch) | |
tree | 0ffaa5258b2ad3ef6d8bf05efeeac8cb422633f8 /src/3rdparty/phonon | |
parent | bf9fedf5c2d46671c3f8a4fe7dddc5e8e55d1b87 (diff) | |
download | Qt-60f6dfc230cac169fa06969383a53fc433e9dc2b.zip Qt-60f6dfc230cac169fa06969383a53fc433e9dc2b.tar.gz Qt-60f6dfc230cac169fa06969383a53fc433e9dc2b.tar.bz2 |
Phonon QT7 backend; Don't release string after unsuccessful AudioDeviceGetProperty().
Reviewed-by:Andrew den Exter
Diffstat (limited to 'src/3rdparty/phonon')
-rw-r--r-- | src/3rdparty/phonon/qt7/audiodevice.mm | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/3rdparty/phonon/qt7/audiodevice.mm b/src/3rdparty/phonon/qt7/audiodevice.mm index 6bec62d..3aae0ee4 100644 --- a/src/3rdparty/phonon/qt7/audiodevice.mm +++ b/src/3rdparty/phonon/qt7/audiodevice.mm @@ -149,7 +149,6 @@ QString AudioDevice::deviceSourceName(AudioDeviceID deviceID) size = sizeof(translation); err = AudioDeviceGetProperty(deviceID, 0, 0, kAudioDevicePropertyDataSourceNameForIDCFString, &size, &translation); if (err != noErr){ - CFRelease(cfName); return QString(); } QString name = PhononCFString::toQString(cfName); |