blob: 9488afdca8e3e54e564cf430ead334839e7bcca7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- src/qjackctlInterfaceComboBox.cpp.orig 2015-10-28 15:24:52 UTC
+++ src/qjackctlInterfaceComboBox.cpp
@@ -191,9 +191,16 @@ private:
// Fill HostApi info...
const PaHostApiIndex iNumHostApi = Pa_GetHostApiCount();
+#ifdef __clang__
+ QString *hostNames = new QString[iNumHostApi];
+#else
QString hostNames[iNumHostApi];
+#endif
for (PaHostApiIndex i = 0; i < iNumHostApi; ++i)
hostNames[i] = QString(Pa_GetHostApiInfo(i)->name);
+#ifdef __clang__
+ delete [] hostNames;
+#endif
// Fill device info...
const PaDeviceIndex iNumDevice = Pa_GetDeviceCount();
|