MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / ClearRefs

Method ClearRefs

src/lua/LuaHTTP.cpp:163–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161
162
163void LuaHTTP::ClearRefs() {
164 if (funcRef != LUA_NOREF) {
165 luaL_unref(httpL, LUA_REGISTRYINDEX, funcRef);
166 funcRef = LUA_NOREF;
167 }
168 if (selfRef != LUA_NOREF) {
169 luaL_unref(httpL, LUA_REGISTRYINDEX, selfRef);
170 selfRef = LUA_NOREF;
171 }
172}
173
174
175void LuaHTTP::finalization(char* data, unsigned int length, bool good) {

Callers

nothing calls this directly

Calls 1

luaL_unrefFunction · 0.50

Tested by

no test coverage detected