mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 10:29:59 +03:00
Fix memory leak in system
This commit is contained in:
parent
55e21737dd
commit
b1cddb4600
3 changed files with 7 additions and 7 deletions
|
|
@ -32,8 +32,8 @@ QString ScreenshotDialog::message() const
|
|||
|
||||
QList<ScreenShot *> ScreenshotDialog::selected() const
|
||||
{
|
||||
QList<ScreenShot *> list;
|
||||
QList<ScreenShot *> first = m_list->screenshots();
|
||||
QList<std::shared_ptr<ScreenShot>> list;
|
||||
QList<std::shared_ptr<ScreenShot>> first = m_list->screenshots();
|
||||
for (QModelIndex index : ui->listView->selectionModel()->selectedRows())
|
||||
{
|
||||
list.append(first.at(index.row()));
|
||||
|
|
@ -51,7 +51,7 @@ void ScreenshotDialog::on_uploadBtn_clicked()
|
|||
}
|
||||
SequentialTask *task = new SequentialTask(this);
|
||||
NetJob *job = new NetJob("Screenshot Upload");
|
||||
for (ScreenShot *shot : m_uploaded)
|
||||
for (std::shared_ptr<ScreenShot> shot : m_uploaded)
|
||||
{
|
||||
job->addNetAction(ImgurUpload::make(shot));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue