mirror of
https://github.com/reactos/reactos.git
synced 2024-07-08 21:55:08 +00:00
[PORTCLS]
- Use FreeItem function for freeing memory instead of doing it directly svn path=/trunk/; revision=47819
This commit is contained in:
parent
4186c83e7b
commit
3da5d96351
|
@ -108,7 +108,7 @@ PcRegisterIoTimeout(
|
|||
{
|
||||
bFound = TRUE;
|
||||
Status = STATUS_UNSUCCESSFUL;
|
||||
ExFreePool(TimerContext);
|
||||
FreeItem(TimerContext, TAG_PORTCLASS);
|
||||
break;
|
||||
}
|
||||
ListEntry = ListEntry->Flink;
|
||||
|
@ -161,7 +161,7 @@ PcUnregisterIoTimeout(
|
|||
{
|
||||
bFound = TRUE;
|
||||
RemoveEntryList(&CurContext->Entry);
|
||||
ExFreePool(CurContext);
|
||||
FreeItem(CurContext, TAG_PORTCLASS);
|
||||
break;
|
||||
}
|
||||
ListEntry = ListEntry->Flink;
|
||||
|
@ -196,7 +196,7 @@ PcCompletePendingPropertyRequest(
|
|||
IoCompleteRequest(PropertyRequest->Irp, IO_SOUND_INCREMENT);
|
||||
|
||||
// free the property request
|
||||
ExFreePool(PropertyRequest);
|
||||
FreeItem(PropertyRequest, TAG_PORTCLASS);
|
||||
|
||||
// return success
|
||||
return STATUS_SUCCESS;
|
||||
|
|
|
@ -234,7 +234,7 @@ CInterruptSync::Connect()
|
|||
|
||||
DPRINT("Vector %u Level %u Flags %x Affinity %x\n", Descriptor->u.Interrupt.Vector, Descriptor->u.Interrupt.Level, Descriptor->Flags, Descriptor->u.Interrupt.Affinity);
|
||||
|
||||
Status = IoConnectInterrupt(&m_Interrupt,
|
||||
Status = IoConnectInterrupt(&m_Interrupt,
|
||||
IInterruptServiceRoutine,
|
||||
(PVOID)this,
|
||||
&m_Lock,
|
||||
|
|
|
@ -427,7 +427,7 @@ CPortPinDMus::Close(
|
|||
|
||||
if (m_Format)
|
||||
{
|
||||
ExFreePool(m_Format);
|
||||
FreeItem(m_Format, TAG_PORTCLASS);
|
||||
m_Format = NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -959,7 +959,7 @@ CPortPinWaveCyclic::Close(
|
|||
if (m_Format)
|
||||
{
|
||||
// free format
|
||||
ExFreePool(m_Format);
|
||||
FreeItem(m_Format, TAG_PORTCLASS);
|
||||
m_Format = NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -668,7 +668,7 @@ CPortPinWavePci::Close(
|
|||
|
||||
if (m_Format)
|
||||
{
|
||||
ExFreePool(m_Format);
|
||||
FreeItem(m_Format, TAG_PORTCLASS);
|
||||
m_Format = NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -226,7 +226,7 @@ CPortPinWaveRT::HandleKsProperty(
|
|||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
if (m_Format)
|
||||
ExFreePoolWithTag(m_Format, TAG_PORTCLASS);
|
||||
FreeItem(m_Format, TAG_PORTCLASS);
|
||||
|
||||
m_Format = NewDataFormat;
|
||||
Irp->IoStatus.Information = DataFormat->FormatSize;
|
||||
|
@ -400,7 +400,7 @@ CloseStreamRoutine(
|
|||
|
||||
if (This->m_Format)
|
||||
{
|
||||
ExFreePool(This->m_Format);
|
||||
FreeItem(This->m_Format, TAG_PORTCLASS);
|
||||
This->m_Format = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue