Unconditionally free memory. Should make smatch happy.

This commit is contained in:
Robert Reif 2005-03-15 19:31:55 +00:00 committed by Alexandre Julliard
parent bf4dc2e152
commit 9329e8f831
1 changed files with 10 additions and 12 deletions

View File

@ -1092,7 +1092,7 @@ static HRESULT WINAPI DSPROPERTY_EnumerateA(
TRACE("calling Callback(%p,%p)\n", &data, ppd->Context);
(ppd->Callback)(&data, ppd->Context);
}
HeapFree(GetProcessHeap(),0,szInterface);
}
}
@ -1100,7 +1100,6 @@ static HRESULT WINAPI DSPROPERTY_EnumerateA(
}
}
}
}
devs = waveInGetNumDevs();
for (wid = 0; wid < devs; ++wid) {
@ -1126,7 +1125,7 @@ static HRESULT WINAPI DSPROPERTY_EnumerateA(
TRACE("calling Callback(%p,%p)\n", &data, ppd->Context);
(ppd->Callback)(&data, ppd->Context);
}
HeapFree(GetProcessHeap(),0,szInterface);
}
}
@ -1134,7 +1133,6 @@ static HRESULT WINAPI DSPROPERTY_EnumerateA(
}
}
}
}
return S_OK;
}
@ -1198,6 +1196,7 @@ static HRESULT WINAPI DSPROPERTY_EnumerateW(
TRACE("calling Callback(%p,%p)\n", &data, ppd->Context);
(ppd->Callback)(&data, ppd->Context);
}
}
HeapFree(GetProcessHeap(),0,wInterface);
}
}
@ -1205,7 +1204,6 @@ static HRESULT WINAPI DSPROPERTY_EnumerateW(
HeapFree(GetProcessHeap(),0,wModule);
}
}
}
devs = waveInGetNumDevs();
for (wid = 0; wid < devs; ++wid) {
@ -1235,6 +1233,7 @@ static HRESULT WINAPI DSPROPERTY_EnumerateW(
TRACE("calling Callback(%p,%p)\n", &data, ppd->Context);
(ppd->Callback)(&data, ppd->Context);
}
}
HeapFree(GetProcessHeap(),0,wInterface);
}
}
@ -1242,7 +1241,6 @@ static HRESULT WINAPI DSPROPERTY_EnumerateW(
HeapFree(GetProcessHeap(),0,wModule);
}
}
}
return S_OK;
}