lua callbacks are now object bound
commit1b49fc7510a9347a1d72084e5a03e02923a484ba
authorAndreas Streichardt <andreas.streichardt@globalpark.com>
Wed, 20 Jan 2010 11:30:12 +0000 (20 12:30 +0100)
committerAndreas Streichardt <andreas.streichardt@globalpark.com>
Wed, 20 Jan 2010 11:30:12 +0000 (20 12:30 +0100)
tree65ebf4dc48e8f8e87609d0d8678152bc5b54c8ac
parenta57514f1f6860b468bf0ac4b570e222f01d21887
lua callbacks are now object bound

lua callbacks should should not be saved in some global variable but be object bound.
When creating numerous lua objects in a row which reference numerous functions this may lead to huge memory usages.
this has been changed so that the callbacks are objectbound and will be deleted after unsetting the lua object
tests/015.phpt [new file with mode: 0644]