Skip to content

Commit

Permalink
wpmanga, fixed memory leak. closed #489
Browse files Browse the repository at this point in the history
  • Loading branch information
riderkick committed Feb 22, 2017
1 parent 391f8f5 commit 5683214
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions baseunits/modules/WPManga.pas
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,9 @@ function GetInfo(const MangaInfo: TMangaInformation;
chapterName.Add(s);
end;
if Thread.IsTerminated then Break;
s := XPathString('//*[@class="pgg"]//*[./a[@class="sel"]]/following-sibling::*[./a]/a/@href');
if s <> '' then
Break
else if GET(MaybeFillHost(Module.RootURL, s)) then
s := Trim(XPathString('//*[@class="pgg"]//*[./a[@class="sel"]]/following-sibling::*[./a]/a/@href'));
if s = '' then Break;
if GET(MaybeFillHost(Module.RootURL, s)) then
ParseHTML(Document)
else
Break;
Expand Down

0 comments on commit 5683214

Please sign in to comment.