Author: janderwald
Date: Mon Jun 21 18:56:30 2010
New Revision: 47819
URL:
http://svn.reactos.org/svn/reactos?rev=47819&view=rev
Log:
[PORTCLS]
- Use FreeItem function for freeing memory instead of doing it directly
Modified:
trunk/reactos/drivers/wdm/audio/backpln/portcls/api.cpp
trunk/reactos/drivers/wdm/audio/backpln/portcls/interrupt.cpp
trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_dmus.cpp
trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavecyclic.cpp
trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavepci.cpp
trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavert.cpp
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/api.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/api.cpp [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/api.cpp [iso-8859-1] Mon Jun 21
18:56:30 2010
@@ -108,7 +108,7 @@
{
bFound = TRUE;
Status = STATUS_UNSUCCESSFUL;
- ExFreePool(TimerContext);
+ FreeItem(TimerContext, TAG_PORTCLASS);
break;
}
ListEntry = ListEntry->Flink;
@@ -161,7 +161,7 @@
{
bFound = TRUE;
RemoveEntryList(&CurContext->Entry);
- ExFreePool(CurContext);
+ FreeItem(CurContext, TAG_PORTCLASS);
break;
}
ListEntry = ListEntry->Flink;
@@ -196,7 +196,7 @@
IoCompleteRequest(PropertyRequest->Irp, IO_SOUND_INCREMENT);
// free the property request
- ExFreePool(PropertyRequest);
+ FreeItem(PropertyRequest, TAG_PORTCLASS);
// return success
return STATUS_SUCCESS;
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/interrupt.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/interrupt.cpp [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/interrupt.cpp [iso-8859-1] Mon Jun 21
18:56:30 2010
@@ -234,7 +234,7 @@
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,
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_dmus.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_dmus.cpp [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_dmus.cpp [iso-8859-1] Mon Jun 21
18:56:30 2010
@@ -427,7 +427,7 @@
if (m_Format)
{
- ExFreePool(m_Format);
+ FreeItem(m_Format, TAG_PORTCLASS);
m_Format = NULL;
}
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavecyclic.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavecyclic.cpp [iso-8859-1]
(original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavecyclic.cpp [iso-8859-1] Mon
Jun 21 18:56:30 2010
@@ -959,7 +959,7 @@
if (m_Format)
{
// free format
- ExFreePool(m_Format);
+ FreeItem(m_Format, TAG_PORTCLASS);
m_Format = NULL;
}
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavepci.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavepci.cpp [iso-8859-1]
(original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavepci.cpp [iso-8859-1] Mon Jun
21 18:56:30 2010
@@ -668,7 +668,7 @@
if (m_Format)
{
- ExFreePool(m_Format);
+ FreeItem(m_Format, TAG_PORTCLASS);
m_Format = NULL;
}
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavert.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavert.cpp [iso-8859-1]
(original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavert.cpp [iso-8859-1] Mon Jun 21
18:56:30 2010
@@ -226,7 +226,7 @@
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 @@
if (This->m_Format)
{
- ExFreePool(This->m_Format);
+ FreeItem(This->m_Format, TAG_PORTCLASS);
This->m_Format = NULL;
}