Merge pull request #1479 from Azaezel/alpha41/sfxEmitterCleanup

clean up sfxemitter
This commit is contained in:
Brian Roberts 2025-05-21 21:14:57 -05:00 committed by GitHub
commit 3c85ff2c8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -233,7 +233,7 @@ SFXEmitter::SFXEmitter()
SFXEmitter::~SFXEmitter()
{
if(mLocalProfile != NULL)
if (mLocalProfile->getRefCount() && !mLocalProfile->isDeleted())
mLocalProfile->onRemove();
SFX_DELETE( mSource );