[vlc-devel] commit: Qt: force the deletion that doesn't seem to happen correctly ( Jean-Baptiste Kempf )
git version control
git at videolan.org
Wed Feb 11 04:17:08 CET 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Feb 11 04:00:53 2009 +0100| [2a94c4bbefd6cc673ec4bb50c1aa8d0d16497269] | committer: Jean-Baptiste Kempf
Qt: force the deletion that doesn't seem to happen correctly
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2a94c4bbefd6cc673ec4bb50c1aa8d0d16497269
---
modules/gui/qt4/components/interface_widgets.cpp | 6 +++++-
modules/gui/qt4/components/interface_widgets.hpp | 1 +
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index ea3cd80..a57cae1 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -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
****************************************************************************/
diff --git a/modules/gui/qt4/components/interface_widgets.hpp b/modules/gui/qt4/components/interface_widgets.hpp
index f889d78..206c579 100644
--- a/modules/gui/qt4/components/interface_widgets.hpp
+++ b/modules/gui/qt4/components/interface_widgets.hpp
@@ -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 )
More information about the vlc-devel
mailing list