Commit fe512faf authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Fix a segfault in Skins2 interface.

parent 040eab45
...@@ -647,8 +647,11 @@ void MainInputManager::customEvent( QEvent *event ) ...@@ -647,8 +647,11 @@ void MainInputManager::customEvent( QEvent *event )
/* we are working as a dialogs provider */ /* we are working as a dialogs provider */
playlist_t *p_playlist = pl_Yield( p_intf ); playlist_t *p_playlist = pl_Yield( p_intf );
p_input = playlist_CurrentInput( p_playlist ); p_input = playlist_CurrentInput( p_playlist );
emit inputChanged( p_input ); if( p_input )
vlc_object_release( p_input ); {
emit inputChanged( p_input );
vlc_object_release( p_input );
}
pl_Release( p_intf ); pl_Release( 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