mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Fix memory leaks
This commit is contained in:
parent
5163df977a
commit
36538abc18
@ -308,5 +308,7 @@ void FolderController::service(HttpRequest &request, HttpResponse &response)
|
|||||||
t.setVariable("page", QString("%1").arg(page + 1));
|
t.setVariable("page", QString("%1").arg(page + 1));
|
||||||
t.setVariable("pages", QString("%1").arg(numPages));
|
t.setVariable("pages", QString("%1").arg(numPages));
|
||||||
|
|
||||||
|
qDeleteAll(folderContent);
|
||||||
|
|
||||||
response.write(t.toUtf8(), true);
|
response.write(t.toUtf8(), true);
|
||||||
}
|
}
|
||||||
|
@ -63,6 +63,8 @@ void FolderContentControllerV2::serviceContent(const int &library, const qulongl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
qDeleteAll(folderContent);
|
||||||
|
|
||||||
QJsonDocument output(items);
|
QJsonDocument output(items);
|
||||||
|
|
||||||
response.write(output.toJson(QJsonDocument::Compact));
|
response.write(output.toJson(QJsonDocument::Compact));
|
||||||
|
Loading…
Reference in New Issue
Block a user