[Kdenlive-devel] [PATCH 06/37] Use QPointer

Mikko Rapeli mikko.rapeli at iki.fi
Thu Jun 28 13:52:44 UTC 2012


Fixes crashes if parent is destroyed. Found by krazy. Details at:
http://blogs.kde.org/node/3919
---
 src/recmonitor.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/recmonitor.cpp b/src/recmonitor.cpp
index 83b3ec1..1ffd419 100644
--- a/src/recmonitor.cpp
+++ b/src/recmonitor.cpp
@@ -884,7 +884,7 @@ void RecMonitor::manageCapturedFiles()
     kDebug() << capturedFiles;
 
     if (capturedFiles.count() > 0) {
-        ManageCapturesDialog *d = new ManageCapturesDialog(capturedFiles, this);
+        QPointer<ManageCapturesDialog> d = new ManageCapturesDialog(capturedFiles, this);
         if (d->exec() == QDialog::Accepted) {
             emit addProjectClipList(d->importFiles());
         }
-- 
1.7.10.4





More information about the Kdenlive mailing list