Release the input in PopupMenu
authorRafaël Carré <funman@videolan.org>
Sun, 20 Apr 2008 11:43:00 +0000 (13:43 +0200)
committerRafaël Carré <funman@videolan.org>
Sun, 20 Apr 2008 11:43:12 +0000 (13:43 +0200)
Patch by Jean-Philippe André

modules/gui/qt4/menus.cpp

index 577accf..1a5d4e7 100644 (file)
@@ -658,6 +658,8 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
                     VideoAutoMenuBuilder( p_vout, objects, varnames );
                     vlc_object_release( p_vout );
                 }
                     VideoAutoMenuBuilder( p_vout, objects, varnames );
                     vlc_object_release( p_vout );
                 }
+
+                vlc_object_release( p_input );
             }
 
             QMenu *menu = new QMenu();
             }
 
             QMenu *menu = new QMenu();