Various misc. tweaks and fixes based on static code analysis to minimize/fix memleaks, crashes, or other performance impacting code.

This commit is contained in:
Areloch 2020-09-19 18:25:10 -05:00
parent d76c73c252
commit 8956559bfd
44 changed files with 124 additions and 258 deletions

View file

@ -149,7 +149,7 @@ SFXSound* SFXSound::_create( SFXDevice* device,
SFXBuffer* buffer = SFX->_createBuffer( stream, description );
if( !buffer )
{
source->deleteObject();
SAFE_DELETE_OBJECT(source);
Con::errorf( "SFXSound::_create() - Could not create device buffer!" );
return NULL;