Commit 17950a15 authored by Christophe Massiot's avatar Christophe Massiot

* ALL: a couple more vlc_object_release()...

parent 96377d38
...@@ -1038,6 +1038,7 @@ static int Other( vlc_object_t *p_this, char const *psz_cmd, ...@@ -1038,6 +1038,7 @@ static int Other( vlc_object_t *p_this, char const *psz_cmd,
FIND_ANYWHERE ); FIND_ANYWHERE );
if( !p_inp ) if( !p_inp )
{ {
vlc_object_release( p_pl );
return VLC_ENOOBJ; return VLC_ENOOBJ;
} }
......
...@@ -109,26 +109,31 @@ static int Open( vlc_object_t *p_this ) ...@@ -109,26 +109,31 @@ static int Open( vlc_object_t *p_this )
if( OSFactory::instance( p_intf ) == NULL ) if( OSFactory::instance( p_intf ) == NULL )
{ {
msg_Err( p_intf, "Cannot initialize OSFactory" ); msg_Err( p_intf, "Cannot initialize OSFactory" );
vlc_object_release( p_intf->p_sys->p_playlist );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
if( AsyncQueue::instance( p_intf ) == NULL ) if( AsyncQueue::instance( p_intf ) == NULL )
{ {
msg_Err( p_intf, "Cannot initialize AsyncQueue" ); msg_Err( p_intf, "Cannot initialize AsyncQueue" );
vlc_object_release( p_intf->p_sys->p_playlist );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
if( Interpreter::instance( p_intf ) == NULL ) if( Interpreter::instance( p_intf ) == NULL )
{ {
msg_Err( p_intf, "Cannot instanciate Interpreter" ); msg_Err( p_intf, "Cannot instanciate Interpreter" );
vlc_object_release( p_intf->p_sys->p_playlist );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
if( VarManager::instance( p_intf ) == NULL ) if( VarManager::instance( p_intf ) == NULL )
{ {
msg_Err( p_intf, "Cannot instanciate VarManager" ); msg_Err( p_intf, "Cannot instanciate VarManager" );
vlc_object_release( p_intf->p_sys->p_playlist );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
if( VlcProc::instance( p_intf ) == NULL ) if( VlcProc::instance( p_intf ) == NULL )
{ {
msg_Err( p_intf, "Cannot initialize VLCProc" ); msg_Err( p_intf, "Cannot initialize VLCProc" );
vlc_object_release( p_intf->p_sys->p_playlist );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
Dialogs::instance( p_intf ); Dialogs::instance( p_intf );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment