summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJustin McPherson <justin.mcpherson@nokia.com>2010-05-12 00:53:41 (GMT)
committerJustin McPherson <justin.mcpherson@nokia.com>2010-05-12 01:07:00 (GMT)
commit60f6dfc230cac169fa06969383a53fc433e9dc2b (patch)
tree0ffaa5258b2ad3ef6d8bf05efeeac8cb422633f8 /src
parentbf9fedf5c2d46671c3f8a4fe7dddc5e8e55d1b87 (diff)
downloadQt-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')
-rw-r--r--src/3rdparty/phonon/qt7/audiodevice.mm1
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);