diff options
Diffstat (limited to 'src/lib/eiotas_spin.c')
-rw-r--r-- | src/lib/eiotas_spin.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/eiotas_spin.c b/src/lib/eiotas_spin.c index 195b772..e0f8231 100644 --- a/src/lib/eiotas_spin.c +++ b/src/lib/eiotas_spin.c @@ -68,7 +68,15 @@ EAPI Eiotas_Particle* eiotas_spin_require_particle(Eiotas_Spin *spin) EAPI void eiotas_spin_release_particle(Eiotas_Spin *spin, Eiotas_Particle *particle) { - // TODO particle->reset(); + Eiotas_Particle *p; + Eina_Inlist *list; + + while (particle->merged) { + p = EINA_INLIST_CONTAINER_GET(particle->merged,Eiotas_Particle); + particle->merged = eina_inlist_remove(particle->merged,particle->merged); + eiotas_spin_release_particle(spin,p); + } + eiotas_particle_reset(particle); eina_array_push(spin->free_particles,particle); } |