mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-09-10 14:52:58 +02:00
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:
@@ -184,7 +184,7 @@ public:
|
||||
|
||||
virtual ~ScopedAlloc() throw()
|
||||
{
|
||||
Alloc(0);
|
||||
safe_free(this->m_buffer);
|
||||
}
|
||||
|
||||
virtual void Alloc( size_t newsize )
|
||||
@@ -232,7 +232,7 @@ public:
|
||||
|
||||
virtual ~ScopedAlignedAlloc() throw()
|
||||
{
|
||||
Alloc(0);
|
||||
safe_aligned_free(this->m_buffer);
|
||||
}
|
||||
|
||||
virtual void Alloc( size_t newsize )
|
||||
|
||||
Reference in New Issue
Block a user