[vlc-commits] qt: custom_menus: Do not leak created actions

Hugo Beauzée-Luyssen git at videolan.org
Tue Jun 19 16:35:12 CEST 2018


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Jun 19 16:33:54 2018 +0200| [f1fb549e78c54b72978d6a1a00c459dbfc601bfb] | committer: Hugo Beauzée-Luyssen

qt: custom_menus: Do not leak created actions

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

 modules/gui/qt/components/custom_menus.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt/components/custom_menus.cpp b/modules/gui/qt/components/custom_menus.cpp
index c791d3da97..232a7aea7a 100644
--- a/modules/gui/qt/components/custom_menus.cpp
+++ b/modules/gui/qt/components/custom_menus.cpp
@@ -66,7 +66,7 @@ RendererMenu::RendererMenu( QMenu *parent, intf_thread_t *p_intf_ )
 
     group = new QActionGroup( this );
 
-    QAction *action = new QAction( qtr("<Local>") );
+    QAction *action = new QAction( qtr("<Local>"), this );
     action->setCheckable(true);
     addAction( action );
     group->addAction(action);



More information about the vlc-commits mailing list