]> git.sesse.net Git - vlc/commitdiff
Qt: fix a leak of telexFrame in Controller
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 30 Jan 2010 22:52:23 +0000 (23:52 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 30 Jan 2010 22:55:26 +0000 (23:55 +0100)
modules/gui/qt4/components/controller.cpp

index 021db0dcfe3ea65bdc7ca257dd274ed0e3aaea38..3e03a374084428dfdce9ca32dbaf0940c47614a7 100644 (file)
@@ -474,7 +474,7 @@ QFrame *AbstractController::telexFrame()
     /**
      * Telextext QFrame
      **/
-    QFrame *telexFrame = new QFrame;
+    QFrame *telexFrame = new QFrame( this );
     QHBoxLayout *telexLayout = new QHBoxLayout( telexFrame );
     telexLayout->setSpacing( 0 ); telexLayout->setMargin( 0 );
     CONNECT( THEMIM->getIM(), teletextPossible( bool ),