intf_thread_t *p_intf = (intf_thread_t *)p_this;
playlist_t *p_playlist;
intf_sys_t *p_sys = malloc( sizeof( intf_sys_t ) );
-
+
if( !p_sys )
{
msg_Err( p_intf, "Out of memory" );
var_DelCallback( p_playlist, "playlist-current", ItemChange, p_this );
pl_Release( p_this );
+ if( p_intf->p_sys->notification )
+ g_object_unref( p_intf->p_sys->notification );
+
vlc_mutex_destroy( &p_sys->lock );
free( p_sys );
notify_uninit();
/* Close previous notification if still active */
if( p_intf->p_sys->notification )
+ {
notify_notification_close( p_intf->p_sys->notification, &p_error );
+ g_object_unref( p_intf->p_sys->notification );
+ }
notification = notify_notification_new( _("Now Playing"),
psz_temp, NULL, NULL);