Qt: remove small leaks in menus.hpp
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 11 Feb 2009 02:05:56 +0000 (03:05 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 11 Feb 2009 02:05:56 +0000 (03:05 +0100)
modules/gui/qt4/menus.hpp

index abae25c..8741e9e 100644 (file)
@@ -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 )