Changeset 09ce2046a19146b3992159ddb716d8bab45bc285

Show
Ignore:
Timestamp:
01/04/08 21:13:08 (8 months ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1207077188 +0200
git-parent:

[a0ff298c8cd5bfb1dc20a6715af9ed7a075082c6]

git-author:
Rafaël Carré <funman@videolan.org> 1207077154 +0200
Message:

Fix media library's input items reference counting

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/playlist/engine.c

    rcf5667b r09ce204  
    397397} 
    398398 
     399static void ML_Decref( playlist_item_t *p_node ) 
     400{ 
     401    vlc_gc_decref( p_node->p_input ); 
     402 
     403    int i; 
     404    if( p_node->i_children > 0 ) 
     405        for( i = 0 ; i < p_node->i_children ; i++ ) 
     406            ML_Decref( p_node->pp_children[i] ); 
     407} 
    399408 
    400409/** 
     
    477486 
    478487    playlist_MLDump( p_playlist ); 
     488    /* We don't need the media library anymore */ 
     489    ML_Decref( p_playlist->p_ml_category ); 
    479490 
    480491    PL_LOCK; 
  • src/playlist/loadsave.c

    rc338db8 r09ce204  
    181181                        input_item_subitem_added, p_playlist ); 
    182182 
    183     vlc_gc_decref( p_input ); 
    184  
    185183    free( psz_uri ); 
    186184    return VLC_SUCCESS;