diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-09 14:10:44 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-09 14:10:44 +0300 |
commit | 43d54b4b589faa36f74c815725fd64c18258448e (patch) | |
tree | 36b8d4f3d59dbbcd6dc8486c5a2702e412d5cade | |
parent | fbf164f781503ee2e538156bc701a957e3dea713 (diff) |
code cleaning
-rw-r--r-- | plugins/MirLua/src/Modules/m_http.cpp | 2 | ||||
-rw-r--r-- | protocols/Steam/src/http_request.h | 2 |
2 files changed, 2 insertions, 2 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; } diff --git a/protocols/Steam/src/http_request.h b/protocols/Steam/src/http_request.h index 843ed94cda..ac988a804a 100644 --- a/protocols/Steam/src/http_request.h +++ b/protocols/Steam/src/http_request.h @@ -15,7 +15,7 @@ public: ~HttpResponse() { - Netlib_FreeHttpRequest(m_response); + delete m_response; } bool operator!() const |