[Digikam-devel] [digikam] [Bug 330230] Memory leak in Image Quality Sorter
Gilles Caulier
caulier.gilles at gmail.com
Wed Jan 22 06:56:04 GMT 2014
https://bugs.kde.org/show_bug.cgi?id=330230
Gilles Caulier <caulier.gilles at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Version Fixed In| |4.0.0
Resolution|--- |FIXED
Latest Commit| |http://commits.kde.org/digi
| |kam/df13317e5d9310f7d07943d
| |f8b1501d4706f9e17
--- Comment #6 from Gilles Caulier <caulier.gilles at gmail.com> ---
Git commit df13317e5d9310f7d07943df8b1501d4706f9e17 by Gowtham Ashok.
Committed on 22/01/2014 at 01:46.
Pushed by gowthamashok into branch 'master'.
Fixed imgqsort huge memory leak
M +6 -2 utilities/maintenance/imagequalitytask.cpp
http://commits.kde.org/digikam/df13317e5d9310f7d07943df8b1501d4706f9e17
diff --git a/utilities/maintenance/imagequalitytask.cpp
b/utilities/maintenance/imagequalitytask.cpp
index 1df7a23..eafa8d8 100644
--- a/utilities/maintenance/imagequalitytask.cpp
+++ b/utilities/maintenance/imagequalitytask.cpp
@@ -78,8 +78,11 @@ void ImageQualityTask::slotCancel()
{
d->cancel = true;
- if (d->imgqsort)
+ //TODO: Investigate if commented code is necessary
+ /* if (d->imgqsort)
d->imgqsort->cancelFilter();
+
+ */
}
void ImageQualityTask::run()
@@ -111,8 +114,9 @@ void ImageQualityTask::run()
ImageInfo info(d->path);
info.setPickLabel(pick);
+ if(d->imgqsort)
+ delete d->imgqsort; //delete image data
after setting label
}
-
// Dispatch progress to Progress Manager
QImage qimg = dimg.smoothScale(22, 22,
Qt::KeepAspectRatio).copyQImage();
emit signalFinished(qimg);
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Digikam-devel
mailing list