[PORTCLS]

- Use FreeItem function for freeing memory instead of doing it directly

svn path=/trunk/; revision=47819
This commit is contained in:
Johannes Anderwald 2010-06-21 18:56:30 +00:00
parent 4186c83e7b
commit 3da5d96351
6 changed files with 9 additions and 9 deletions

View file

@ -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;

View file

@ -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,

View file

@ -427,7 +427,7 @@ CPortPinDMus::Close(
if (m_Format)
{
ExFreePool(m_Format);
FreeItem(m_Format, TAG_PORTCLASS);
m_Format = NULL;
}

View file

@ -959,7 +959,7 @@ CPortPinWaveCyclic::Close(
if (m_Format)
{
// free format
ExFreePool(m_Format);
FreeItem(m_Format, TAG_PORTCLASS);
m_Format = NULL;
}

View file

@ -668,7 +668,7 @@ CPortPinWavePci::Close(
if (m_Format)
{
ExFreePool(m_Format);
FreeItem(m_Format, TAG_PORTCLASS);
m_Format = NULL;
}

View file

@ -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;
}