summaryrefslogtreecommitdiff
path: root/lib/supple/objects.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/supple/objects.lua')
-rw-r--r--lib/supple/objects.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/supple/objects.lua b/lib/supple/objects.lua
index 78f5788..5aa1ec7 100644
--- a/lib/supple/objects.lua
+++ b/lib/supple/objects.lua
@@ -23,11 +23,15 @@ local proc_call = nil
local type = capi.rawtype
-local function clean_down()
+local function clean_down(call_other_end)
-- And force a full GC
gc "collect"
gc "collect"
gc "collect"
+ -- Call the other end if needed
+ if call_other_end then
+ proc_call("supple:clean_down", "__call")
+ end
-- And forget all our local objects
my_objects_by_obj = {}
my_objects_by_tag = {}