aboutsummaryrefslogtreecommitdiff
path: root/buffer.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-05-22 18:03:54 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-05-22 18:46:59 +0200
commita794d3c59a5119fcd1ce0b94e12cbd73c3dc9e58 (patch)
tree0a4c491da1ef58332c628910ddd711eb350fa7fd /buffer.h
parent5af7a3fae401a978d3b7f92af230c102947d25be (diff)
downloadvis-a794d3c59a5119fcd1ce0b94e12cbd73c3dc9e58.tar.gz
vis-a794d3c59a5119fcd1ce0b94e12cbd73c3dc9e58.tar.xz
vis-lua: introduce light references for short lived objects
Light object references are used to type check, but contrary to full object references they are not stored in the Lua registry. This means that they are not bound to the object lifetime of their corresponding C object. Hence such objects must not be used after they have been free(3)-ed by the editor core. Such lightweight object references are always re-created, thus custom properties will not be stored across subsequent accesses. For now light object references are only used for cursor objects. This should ix the crashes introduced by the recent changes which make heavy use of the Lua API.
Diffstat (limited to 'buffer.h')
0 files changed, 0 insertions, 0 deletions