Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
disable finalizer for LuaUserData PMC
Browse files Browse the repository at this point in the history
  • Loading branch information
fperrad committed Mar 16, 2009
1 parent 7251868 commit 58a5a8e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pmc/luauserdata.pmc
Expand Up @@ -111,10 +111,12 @@ Call finalizer and free the userdata.
*/
VTABLE void destroy() {
Parrot_LuaUserdata_attributes *u = PARROT_LUAUSERDATA(SELF);
#if 0
PMC * const meth = _LuaAny_find_meth(INTERP, SELF, "__gc");

if (meth)
(void)Parrot_runops_fromc_args(INTERP, meth, "vP", SELF);
#endif

if (u) {
mem_sys_free(u);
Expand Down

0 comments on commit 58a5a8e

Please sign in to comment.