summaryrefslogtreecommitdiffstats
path: root/logic
diff options
context:
space:
mode:
authorrobotbrain <robotbrainify@gmail.com>2014-02-24 17:49:18 -0500
committerrobotbrain <robotbrainify@gmail.com>2014-02-24 17:49:18 -0500
commitb1cddb4600db2aa54c9d274466b393fc1e03eba9 (patch)
tree48d24295fc53a65d046aea95b7dee170f5ebd66f /logic
parent55e21737dd7d30c1922615c575384b41cc77985f (diff)
downloadMultiMC-b1cddb4600db2aa54c9d274466b393fc1e03eba9.tar
MultiMC-b1cddb4600db2aa54c9d274466b393fc1e03eba9.tar.gz
MultiMC-b1cddb4600db2aa54c9d274466b393fc1e03eba9.tar.lz
MultiMC-b1cddb4600db2aa54c9d274466b393fc1e03eba9.tar.xz
MultiMC-b1cddb4600db2aa54c9d274466b393fc1e03eba9.zip
Fix memory leak in system
Diffstat (limited to 'logic')
-rw-r--r--logic/lists/ScreenshotList.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/logic/lists/ScreenshotList.cpp b/logic/lists/ScreenshotList.cpp
index 9f4ce6b5..eda57a03 100644
--- a/logic/lists/ScreenshotList.cpp
+++ b/logic/lists/ScreenshotList.cpp
@@ -88,10 +88,10 @@ void ScreenshotList::deleteSelected(ScreenshotDialog *dialog)
return;
}
beginResetModel();
- QList<ScreenShot *>::const_iterator it;
+ QList<std::shared_ptr<ScreenShot>>::const_iterator it;
for (it = screens.cbegin(); it != screens.cend(); it++)
{
- ScreenShot *shot = *it;
+ std::shared_ptr<ScreenShot> = *it;
if (!QFile(shot->file).remove())
{
CustomMessageBox::selectable(dialog, tr("Error!"),