[vlmc-devel] ClipRenderer: Fix memory leak

Yikai Lu git at videolan.org
Sat Apr 2 11:39:19 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Tue Mar 29 18:45:41 2016 +0900| [ef70299dbd970a2c22155aad83d7013f5e85ea90] | committer: Hugo Beauzée-Luyssen

ClipRenderer: Fix memory leak

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> https://code.videolan.org/videolan/vlmc/commit/ef70299dbd970a2c22155aad83d7013f5e85ea90
---

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

diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index cb381cc..247e5c7 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& ) ) );



More information about the Vlmc-devel mailing list