]> git.sesse.net Git - vlc/commitdiff
Qt: force the deletion that doesn't seem to happen correctly
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 11 Feb 2009 03:00:53 +0000 (04:00 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 11 Feb 2009 03:00:53 +0000 (04:00 +0100)
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.hpp

index ea3cd8032046f85bec15673f0dc32da90c7a2999..a57cae171032d56cac4334340d4b6466b8ca32fd 100644 (file)
@@ -306,7 +306,11 @@ SpeedLabel::SpeedLabel( intf_thread_t *_p_intf, const QString& text,
     CONNECT( THEMIM, inputChanged( input_thread_t * ),
              speedControl, activateOnState() );
 }
-
+SpeedLabel::~SpeedLabel()
+{
+        delete speedControl;
+        delete speedControlMenu;
+}
 /****************************************************************************
  * Small right-click menu for rate control
  ****************************************************************************/
index f889d78d9f09e003ded2faad04914708e573a25b..206c57913d3197dbe3924033dcc77d396874c70e 100644 (file)
@@ -157,6 +157,7 @@ class SpeedLabel : public QLabel
     Q_OBJECT
 public:
     SpeedLabel( intf_thread_t *, const QString&, QWidget * );
+    virtual ~SpeedLabel();
 
 protected:
     virtual void mouseDoubleClickEvent ( QMouseEvent * event )