elua: connect del callback by default

This commit is contained in:
Daniel Kolesa 2015-03-03 16:38:24 +00:00
parent a8cfea6911
commit 8eca257bf8
1 changed files with 2 additions and 0 deletions

View File

@ -318,6 +318,8 @@ M.__ctor_common = function(klass, parent, ctor, loff, ...)
ret = eo.eo_finalize()
eo._eo_do_end(nil)
end
eo.eo_event_callback_priority_add(eo._EO_BASE_EVENT_DEL, 0, eo_event_del,
nil)
ffi.gc(ret, obj_gccb)
return ret
end