Changeset 09ce2046a19146b3992159ddb716d8bab45bc285
- 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
| rcf5667b |
r09ce204 |
|
| 397 | 397 | } |
|---|
| 398 | 398 | |
|---|
| | 399 | static 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 | } |
|---|
| 399 | 408 | |
|---|
| 400 | 409 | /** |
|---|
| … | … | |
| 477 | 486 | |
|---|
| 478 | 487 | playlist_MLDump( p_playlist ); |
|---|
| | 488 | /* We don't need the media library anymore */ |
|---|
| | 489 | ML_Decref( p_playlist->p_ml_category ); |
|---|
| 479 | 490 | |
|---|
| 480 | 491 | PL_LOCK; |
|---|
| rc338db8 |
r09ce204 |
|
| 181 | 181 | input_item_subitem_added, p_playlist ); |
|---|
| 182 | 182 | |
|---|
| 183 | | vlc_gc_decref( p_input ); |
|---|
| 184 | | |
|---|
| 185 | 183 | free( psz_uri ); |
|---|
| 186 | 184 | return VLC_SUCCESS; |
|---|