[vlc-commits] commit: Qt: memory leak (Jakob Leben )

git at videolan.org git at videolan.org
Mon Mar 29 12:56:01 CEST 2010


vlc | branch: master | Jakob Leben <jleben at videolan.org> | Mon Mar 29 12:23:58 2010 +0200| [4f0759ef34b6efe93dfc27f29e179fce66b908be] | committer: Jakob Leben 

Qt: memory leak

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

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

diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index f48ca57..036d722 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -1036,7 +1036,10 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
                 msg_Warn( p_intf, "could not find parent interface" );
         }
         else
-            menu->addMenu( ViewMenu( p_intf, (QMenu *)NULL ) );
+        {
+            QMenu *viewmenu = menu->addMenu( qtr( "V&iew" ) );
+            ViewMenu( p_intf, viewmenu );
+        }
 
         menu->addMenu( submenu );
     }



More information about the vlc-commits mailing list