| 161 | |
| 162 | |
| 163 | void 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 | |
| 175 | void LuaHTTP::finalization(char* data, unsigned int length, bool good) { |
nothing calls this directly
no test coverage detected