Summary: | Crash when closing Digikam [backtrace] | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Dik Takken <kde> |
Component: | Database-Scan | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | caulier.gilles |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 8.0.0 | |
Sentry Crash Report: |
Description
Dik Takken
2006-08-06 23:34:25 UTC
SVN commit 572641 by mwiesweg: - Shut down ImageAttributesWatch connections when closing, widgets may have been deleted at that time, which will cause a crash. - properly shut down albumthumbnailloader when closing to free Shared Memory CCBUG: 131972 M +4 -0 digikamapp.cpp M +7 -0 imageattributeswatch.cpp M +1 -0 imageattributeswatch.h --- trunk/extragear/graphics/digikam/digikam/digikamapp.cpp #572640:572641 @@ -85,6 +85,7 @@ #include "imageattributeswatch.h" #include "dcrawbinary.h" #include "digikamapp.h" +#include "albumthumbnailloader.h" using KIO::Job; using KIO::UDSEntryList; @@ -171,6 +172,8 @@ DigikamApp::~DigikamApp() { + ImageAttributesWatch::shutDown(); + if (ImageWindow::imagewindowCreated()) delete ImageWindow::imagewindow(); @@ -186,6 +189,7 @@ ImageAttributesWatch::cleanUp(); LoadingCacheInterface::cleanUp(); DcrawBinary::cleanUp(); + AlbumThumbnailLoader::cleanUp(); m_instance = 0; } --- trunk/extragear/graphics/digikam/digikam/imageattributeswatch.cpp #572640:572641 @@ -36,8 +36,15 @@ void ImageAttributesWatch::cleanUp() { delete m_instance; + m_instance = 0; } +void ImageAttributesWatch::shutDown() +{ + if (m_instance) + m_instance->disconnect(0, 0, 0); +} + ImageAttributesWatch *ImageAttributesWatch::instance() { if (!m_instance) --- trunk/extragear/graphics/digikam/digikam/imageattributeswatch.h #572640:572641 @@ -42,6 +42,7 @@ static ImageAttributesWatch *instance(); static void cleanUp(); + static void shutDown(); void imageTagsChanged(Q_LLONG imageId); void imagesChanged(int albumId); If the bug was reproducible for you, please test it. If it was a once-and-never-again, I will close it after this fix. *** Bug has been marked as fixed ***. |