1. Anders Ruud
  2. love
  3. Issues

Issues

Issue #87 invalid

Missing retain in ParticleSystem::setSprite

Anonymous created an issue

I think there should be a retain()-call in the code below.

{{{

!c++

void ParticleSystem::setSprite(Image * image)
{
            if (image) image->retain();  //added

    if(this->sprite != 0)
    {
        this->sprite->release();
        this->sprite = 0;
    }

    this->sprite = image;

}

}}}

Comments (1)

  1. Log in to comment