Graphics/ParticleDeclaration: Fix particle declarations leak
Former-commit-id: f3bfd3eae0d9f355fb6305eae32ea89893e62e5e [formerly 8118af1525528ad5c7a215b97b0ac50c48f2e864] [formerly b217c105316722dd8c94d7be40fbb03d45758bda [formerly f337a26f1ff53bfe3b9afa48a492b01fa2292d74]] Former-commit-id: b5fc8da0e8c13a15e6647202bdaa95d02a2fe971 [formerly 10298d983fb9206a69ae8c6fa8d11f155e040a86] Former-commit-id: 3594d2e8b2846ab1cff07d27c26020ffb140780a
This commit is contained in:
parent
06dd70d039
commit
56e320baa3
|
|
@ -11,6 +11,8 @@ namespace Nz
|
|||
ParticleDeclarationRef ParticleDeclaration::New(Args&&... args)
|
||||
{
|
||||
std::unique_ptr<ParticleDeclaration> object(new ParticleDeclaration(std::forward<Args>(args)...));
|
||||
object->SetPersistent(false);
|
||||
|
||||
return object.release();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue