summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-01-09 14:10:44 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-01-09 14:10:44 +0300
commit43d54b4b589faa36f74c815725fd64c18258448e (patch)
tree36b8d4f3d59dbbcd6dc8486c5a2702e412d5cade /plugins
parentfbf164f781503ee2e538156bc701a957e3dea713 (diff)
code cleaning
Diffstat (limited to 'plugins')
-rw-r--r--plugins/MirLua/src/Modules/m_http.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/MirLua/src/Modules/m_http.cpp b/plugins/MirLua/src/Modules/m_http.cpp
index bbad6165fb..a4d485a34c 100644
--- a/plugins/MirLua/src/Modules/m_http.cpp
+++ b/plugins/MirLua/src/Modules/m_http.cpp
@@ -115,7 +115,7 @@ static int response__index(lua_State *L)
static int response__gc(lua_State *L)
{
MHttpResponse **response = (MHttpResponse **)luaL_checkudata(L, 1, MT_NETLIBHTTPRESPONSE);
- Netlib_FreeHttpRequest(*response);
+ delete *response;
return 0;
}