mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-01 20:19:00 +01: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:
1 parent
252c043409
commit
44bbdbe49d
1 file changed
+2
-2
@@ -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