Skip to content

Commit

Permalink
Fixed not cleaning up curl when HTTPObject is deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
HumanGamer committed Mar 25, 2024
1 parent 9c75bb5 commit ddb5667
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engine/source/game/net/httpObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ HTTPObject::HTTPObject()

HTTPObject::~HTTPObject()
{
if (mCurl)
curl_easy_cleanup(mCurl);
}

bool HTTPObject::onAdd()
Expand Down

0 comments on commit ddb5667

Please sign in to comment.