mirror of https://github.com/PCSX2/pcsx2.git
SafeArray: add a null pointer check
Thanks @ghost for the report. Close issue #327
This commit is contained in:
parent
0b77f93154
commit
b24c76f12a
|
@ -43,7 +43,7 @@ T* SafeArray<T>::_virtual_realloc( int newsize )
|
|||
realloc( m_ptr, newsize * sizeof(T) )
|
||||
);
|
||||
|
||||
if( IsDebugBuild )
|
||||
if( IsDebugBuild && (retval != NULL))
|
||||
{
|
||||
// Zero everything out to 0xbaadf00d, so that its obviously uncleared
|
||||
// to a debuggee
|
||||
|
|
Loading…
Reference in New Issue