From a1c9d4d0a1e34de0b13f2016b06ed30cb2ac2798 Mon Sep 17 00:00:00 2001 From: Szymon Siwek Date: Sun, 16 Oct 2011 14:54:24 +0000 Subject: [PATCH] - polished (removed just created memleak) Changed files: portaudio_asihpi_406.patch -> 1.3 --- portaudio_asihpi_406.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/portaudio_asihpi_406.patch b/portaudio_asihpi_406.patch index 9c2d8b5..67e58ee 100644 --- a/portaudio_asihpi_406.patch +++ b/portaudio_asihpi_406.patch @@ -268,7 +268,7 @@ Index: src/hostapi/asihpi/pa_linux_asihpi.c hpiDevice->adapterType = type; hpiDevice->adapterVersion = version; hpiDevice->adapterSerialNumber = serial; -@@ -746,25 +737,24 @@ +@@ -746,25 +737,25 @@ PA_UNLESS_( hpiHostApi->allocations = PaUtil_CreateAllocationGroup(), paInsufficientMemory ); hpiHostApi->hostApiIndex = hostApiIndex; @@ -283,8 +283,8 @@ Index: src/hostapi/asihpi/pa_linux_asihpi.c * interface and paNoError */ PA_DEBUG(( "Could not open HPI interface\n" )); result = paNoError; -- *hostApi = NULL; -+ hpiHostApi = NULL; + *hostApi = NULL; ++ (&hpiHostApi->baseHostApiRep)->info.deviceCount = 0; goto error; } else -- 2.43.0