[vlc-commits] skins: remove redundant object release

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


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

skins: remove redundant object release

Release is anyway done by the destructor.

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

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

diff --git a/modules/gui/skins2/commands/cmd_callbacks.hpp b/modules/gui/skins2/commands/cmd_callbacks.hpp
index fdf8a5af57..bdcad233c5 100644
--- a/modules/gui/skins2/commands/cmd_callbacks.hpp
+++ b/modules/gui/skins2/commands/cmd_callbacks.hpp
@@ -51,9 +51,6 @@ public:
             return;
 
         (VlcProc::instance( getIntf() )->*m_pfExecute)( m_pObj, m_newVal );
-
-        vlc_object_release( m_pObj );
-        m_pObj = NULL;
     }
     virtual std::string getType() const { return m_label; }
 



More information about the vlc-commits mailing list