粒子特效使用后,资源清除问题。

local path = string.format(“plist/%s”,id);
local p = cc.ParticleSystemQuad:create(path);
local bn = cc.ParticleBatchNode:createWithTexture(p:getTexture());
bn:addChild§;

local eff = this.mainLayer:getChildByTag(1001);
if eff ~= nil then
eff:removeFromParent(true);
end
this.mainLayer:addChild(bn,1,1001);

我每次点击按钮,创建新的粒子特效,下次点击的时候,查找是否有存在的粒子特效,如果有的话删除存在的粒子特效,
再添加新的粒子特效。
但是我发现每次点击按钮,内存都会增长一点。我确认点击事件中,没有创建其他东西。
请知道的朋友,指点一二。谢谢~