[vlc-devel] commit: Qt: remove small leaks in menus.hpp (Jean-Baptiste Kempf )

git version control git at videolan.org
Wed Feb 11 03:06:11 CET 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Feb 11 03:05:56 2009 +0100| [4ff01dbb13277b42255b0d75fed83691faf3276f] | committer: Jean-Baptiste Kempf 

Qt: remove small leaks in menus.hpp

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4ff01dbb13277b42255b0d75fed83691faf3276f
---

 modules/gui/qt4/menus.hpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/menus.hpp b/modules/gui/qt4/menus.hpp
index abae25c..8741e9e 100644
--- a/modules/gui/qt4/menus.hpp
+++ b/modules/gui/qt4/menus.hpp
@@ -141,7 +141,9 @@ class MenuFunc : public QObject
     Q_OBJECT
 
 public:
-    MenuFunc( QMenu *_menu, int _id ) { menu = _menu; id = _id; };
+    MenuFunc( QMenu *_menu, int _id ) : QObject( (QObject *)_menu ),
+                                        menu( _menu ), id( _id ){}
+
     void doFunc( intf_thread_t *p_intf)
     {
         switch( id )




More information about the vlc-devel mailing list