|
From: Andrew G. <an...@zo...> - 2003-08-05 05:39:31
|
Hi,
In event.js, the current version of the deleteChild() function is:
p.deleteChild = function(c) {
c.removeFromParent();
c._delete();
};
As far as I can tell, _delete() is a null function (set to
dynapi.functions.Null inside event.js and not defined anywhere else). It
certainly leaks memory. The following code doesn't leak:
p.deleteChild = function(c) {
c.removeFromParent();
c._destroy();
};
So I'm guessing that the _delete() function was just a typo at some time
and should not really be there at all?
regards,
Andrew
|