[vlmc-devel] [PATCH] ClipRenderer: Fix memory leak

Yikai Lu luyikei.qmltu at gmail.com
Tue Mar 29 11:45:41 CEST 2016


---
 src/Gui/MainWindow.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index 786effd..6b42a6d 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -473,6 +473,7 @@ MainWindow::setupClipPreview()
 {
     m_clipPreview = new PreviewWidget;
     auto renderer = new ClipRenderer;
+    renderer->setParent( m_clipPreview );
     m_clipPreview->setRenderer( renderer );
     connect( Core::getInstance()->library(), SIGNAL( clipRemoved( const QUuid& ) ),
              renderer, SLOT( clipUnloaded( const QUuid& ) ) );
-- 
1.9.1



More information about the Vlmc-devel mailing list