Skip to content

Commit

Permalink
Fix request leak.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aessi committed Nov 5, 2019
1 parent aaf6e2c commit b8c054d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,11 +314,11 @@ Void ServerPull() {
} else {
G_CanPageUp = False;
}
Http.Destroy(G_Request);
G_Request = Null;
} else {
Logger::Warn("ResultNode == Null");
}
Http.Destroy(G_Request);
G_Request = Null;
Xml.Destroy(XmlDoc);
}

Expand Down Expand Up @@ -662,6 +662,8 @@ Boolean HasFetchedChannelInfo() {
Logger::Warn("ERROR Url " ^ G_RequestChannelInfo.Url);
Logger::Warn("ERROR Code " ^ G_RequestChannelInfo.StatusCode);
Logger::Warn("ERROR Content " ^ G_RequestChannelInfo.Result);
Http.Destroy(G_RequestChannelInfo);
G_RequestChannelInfo = Null;
return False;
} else {
G_ChannelInfoResult.fromjson(G_RequestChannelInfo.Result);
Expand Down

0 comments on commit b8c054d

Please sign in to comment.