From 9329e8f831f224890201e79be2f19d20884318bf Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Tue, 15 Mar 2005 19:31:55 +0000 Subject: [PATCH] Unconditionally free memory. Should make smatch happy. --- dlls/dsound/propset.c | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/dlls/dsound/propset.c b/dlls/dsound/propset.c index 21ed30aeafe..d93ab33acfa 100644 --- a/dlls/dsound/propset.c +++ b/dlls/dsound/propset.c @@ -1092,12 +1092,11 @@ static HRESULT WINAPI DSPROPERTY_EnumerateA( TRACE("calling Callback(%p,%p)\n", &data, ppd->Context); (ppd->Callback)(&data, ppd->Context); - - HeapFree(GetProcessHeap(),0,szInterface); } + HeapFree(GetProcessHeap(),0,szInterface); } - HeapFree(GetProcessHeap(),0,nameW); } + HeapFree(GetProcessHeap(),0,nameW); } } } @@ -1126,12 +1125,11 @@ static HRESULT WINAPI DSPROPERTY_EnumerateA( TRACE("calling Callback(%p,%p)\n", &data, ppd->Context); (ppd->Callback)(&data, ppd->Context); - - HeapFree(GetProcessHeap(),0,szInterface); } + HeapFree(GetProcessHeap(),0,szInterface); } - HeapFree(GetProcessHeap(),0,nameW); } + HeapFree(GetProcessHeap(),0,nameW); } } } @@ -1198,12 +1196,12 @@ static HRESULT WINAPI DSPROPERTY_EnumerateW( TRACE("calling Callback(%p,%p)\n", &data, ppd->Context); (ppd->Callback)(&data, ppd->Context); } - HeapFree(GetProcessHeap(),0,wInterface); } + HeapFree(GetProcessHeap(),0,wInterface); } - HeapFree(GetProcessHeap(),0,wDescription); - HeapFree(GetProcessHeap(),0,wModule); } + HeapFree(GetProcessHeap(),0,wDescription); + HeapFree(GetProcessHeap(),0,wModule); } } @@ -1235,12 +1233,12 @@ static HRESULT WINAPI DSPROPERTY_EnumerateW( TRACE("calling Callback(%p,%p)\n", &data, ppd->Context); (ppd->Callback)(&data, ppd->Context); } - HeapFree(GetProcessHeap(),0,wInterface); } + HeapFree(GetProcessHeap(),0,wInterface); } - HeapFree(GetProcessHeap(),0,wDescription); - HeapFree(GetProcessHeap(),0,wModule); } + HeapFree(GetProcessHeap(),0,wDescription); + HeapFree(GetProcessHeap(),0,wModule); } }