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 ea3cd80..a57cae1 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 f889d78..206c579 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 )