mirror of https://github.com/PCSX2/pcsx2.git
common: use free directly instead of an Alloc(0)
Easier to understand the intent. And avoid false positive in coverity
This commit is contained in:
parent
252c043409
commit
44bbdbe49d
|
@ -184,7 +184,7 @@ public:
|
||||||
|
|
||||||
virtual ~ScopedAlloc() throw()
|
virtual ~ScopedAlloc() throw()
|
||||||
{
|
{
|
||||||
Alloc(0);
|
safe_free(this->m_buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void Alloc( size_t newsize )
|
virtual void Alloc( size_t newsize )
|
||||||
|
@ -232,7 +232,7 @@ public:
|
||||||
|
|
||||||
virtual ~ScopedAlignedAlloc() throw()
|
virtual ~ScopedAlignedAlloc() throw()
|
||||||
{
|
{
|
||||||
Alloc(0);
|
safe_aligned_free(this->m_buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void Alloc( size_t newsize )
|
virtual void Alloc( size_t newsize )
|
||||||
|
|
Loading…
Reference in New Issue