From c47515af0f1a60ee1b244001666042de7e601faa Mon Sep 17 00:00:00 2001 From: Joshua Simmons Date: Wed, 11 Aug 2010 15:42:22 +0800 Subject: [PATCH] Adding __gc metamethod to context --- zmq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/zmq.c b/zmq.c index 88d78ae..3532c40 100644 --- a/zmq.c +++ b/zmq.c @@ -304,6 +304,7 @@ static const luaL_reg zmqlib[] = { }; static const luaL_reg ctxmethods[] = { + {"__gc", Lzmq_term}, {"term", Lzmq_term}, {"socket", Lzmq_socket}, {NULL, NULL}