Skip to content

Commit ddb5667

Browse files
committed
Fixed not cleaning up curl when HTTPObject is deleted
1 parent 9c75bb5 commit ddb5667

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

engine/source/game/net/httpObject.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ HTTPObject::HTTPObject()
9595

9696
HTTPObject::~HTTPObject()
9797
{
98+
if (mCurl)
99+
curl_easy_cleanup(mCurl);
98100
}
99101

100102
bool HTTPObject::onAdd()

0 commit comments

Comments
 (0)