From b1cddb4600db2aa54c9d274466b393fc1e03eba9 Mon Sep 17 00:00:00 2001 From: robotbrain Date: Mon, 24 Feb 2014 17:49:18 -0500 Subject: Fix memory leak in system --- logic/lists/ScreenshotList.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'logic') 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::const_iterator it; + QList>::const_iterator it; for (it = screens.cbegin(); it != screens.cend(); it++) { - ScreenShot *shot = *it; + std::shared_ptr = *it; if (!QFile(shot->file).remove()) { CustomMessageBox::selectable(dialog, tr("Error!"), -- cgit