From 60f6dfc230cac169fa06969383a53fc433e9dc2b Mon Sep 17 00:00:00 2001 From: Justin McPherson Date: Wed, 12 May 2010 10:53:41 +1000 Subject: Phonon QT7 backend; Don't release string after unsuccessful AudioDeviceGetProperty(). Reviewed-by:Andrew den Exter --- src/3rdparty/phonon/qt7/audiodevice.mm | 1 - 1 file changed, 1 deletion(-) 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); -- cgit v0.12