Print a warning if an invalid reference is dropped (FS#820)
commit22a5137299878887d547830815f372edd317106c
authorUli Schlachter <psychon@znc.in>
Sat, 11 Dec 2010 12:25:44 +0000 (11 13:25 +0100)
committerUli Schlachter <psychon@znc.in>
Sat, 11 Dec 2010 12:25:44 +0000 (11 13:25 +0100)
treeeb2693a840f2ce4f6ae673f0079abd384055979f
parent66aa5beaf717be80fc315c7f4632ea84eca0a015
Print a warning if an invalid reference is dropped (FS#820)

Previously, if you called luaA_object_decref() it would silently *create* a new
reference with reference count -1. Obviously, this is not good.

Signed-off-by: Uli Schlachter <psychon@znc.in>
common/luaobject.c