[vlc-commits] skins: remove useless hold/release

Rémi Denis-Courmont git at videolan.org
Fri Mar 15 02:28:20 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Mar 15 02:45:32 2019 +0200| [5d9b41f38405567adce772ebcd8e3b17eb220a01] | committer: Rémi Denis-Courmont

skins: remove useless hold/release

The playlist cannot go away while the interface is running.

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

 modules/gui/skins2/commands/cmd_callbacks.hpp | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/modules/gui/skins2/commands/cmd_callbacks.hpp b/modules/gui/skins2/commands/cmd_callbacks.hpp
index 8598ea7fc7..24562e45f6 100644
--- a/modules/gui/skins2/commands/cmd_callbacks.hpp
+++ b/modules/gui/skins2/commands/cmd_callbacks.hpp
@@ -37,13 +37,9 @@ public:
         : CmdGeneric( pIntf ), m_pObj( pObj ), m_newVal( newVal ),
           m_label( label ), m_pfExecute( func )
     {
-        if( m_pObj )
-            vlc_object_hold( m_pObj );
     }
     virtual ~CmdCallback()
     {
-        if( m_pObj )
-            vlc_object_release( m_pObj );
     }
     virtual void execute()
     {



More information about the vlc-commits mailing list