]> git.sesse.net Git - kdenlive/commitdiff
slotShowClipProperties: Use QPointer [krazy 27/37] by Mikko Rapeli
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 23 Jul 2012 07:12:35 +0000 (09:12 +0200)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 23 Jul 2012 07:12:35 +0000 (09:12 +0200)
src/mainwindow.cpp

index 77e58d2adae00f640fec8ef3965435306b7df01e..78aa154752bd7a3903705f2f36cff4fc0bd737e2 100644 (file)
@@ -3272,7 +3272,7 @@ void MainWindow::slotShowClipProperties(DocClipBase *clip)
             return;
         }
         QString path = clip->getProperty("resource");
-        TitleWidget *dia_ui = new TitleWidget(KUrl(), m_activeDocument->timecode(), titlepath, m_projectMonitor->render, this);
+        QPointer<TitleWidget> dia_ui = new TitleWidget(KUrl(), m_activeDocument->timecode(), titlepath, m_projectMonitor->render, this);
         QDomDocument doc;
         doc.setContent(clip->getProperty("xmldata"));
         dia_ui->setXml(doc);