Graphics/ParticleDeclaration: Fix particle declarations leak
Former-commit-id: b0cd7f410ca94bd969943443b81e908b70c5e2d3 [formerly 066c3331d6c18f77900fe08c9c0bc82330a566a0] [formerly 39c3b995afdcaea91ed8f94a9aa7f137844e6c67 [formerly 9559f4534bf9e0fe6c6b3c9fe271d85fb1194416]] Former-commit-id: 42083171720cf53f79311ea901f445f3483b6e45 [formerly 31b97171d51bd90ceb5247436c979ca3cb53386b] Former-commit-id: f2f49e08f018f69523ca769530336e30668e128e
This commit is contained in:
parent
0c211acb78
commit
5b39e8bac6
|
|
@ -11,6 +11,8 @@ namespace Nz
|
||||||
ParticleDeclarationRef ParticleDeclaration::New(Args&&... args)
|
ParticleDeclarationRef ParticleDeclaration::New(Args&&... args)
|
||||||
{
|
{
|
||||||
std::unique_ptr<ParticleDeclaration> object(new ParticleDeclaration(std::forward<Args>(args)...));
|
std::unique_ptr<ParticleDeclaration> object(new ParticleDeclaration(std::forward<Args>(args)...));
|
||||||
|
object->SetPersistent(false);
|
||||||
|
|
||||||
return object.release();
|
return object.release();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue