[vlc-devel] [PATCH 3/3] qt: remove no longer used hold/release

RĂ©mi Denis-Courmont remi at remlab.net
Sun Mar 17 10:56:48 CET 2019


---
 modules/gui/qt/menus.hpp | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/modules/gui/qt/menus.hpp b/modules/gui/qt/menus.hpp
index ca24c5f8e3..fc660562f7 100644
--- a/modules/gui/qt/menus.hpp
+++ b/modules/gui/qt/menus.hpp
@@ -44,8 +44,6 @@ public:
                   vlc_value_t _val, const char *_var ) : QObject( parent )
     {
         this->obj = obj;
-        if( obj )
-            vlc_object_hold( &*obj );
         i_val_type = _i_type;
         val = _val;
         psz_var = strdup( _var );
@@ -55,8 +53,6 @@ public:
         free( psz_var );
         if( ( i_val_type & VLC_VAR_TYPE) == VLC_VAR_STRING )
             free( val.psz_string );
-        if( obj )
-            vlc_object_release( &*obj );
     }
 
     QVLCObject obj;
-- 
2.20.1



More information about the vlc-devel mailing list