Changeset cf5667bd8ce8bfd6c99c55a225361a2af1539b30
- Timestamp:
- 31/03/08 22:43:21
(6 months ago)
- Author:
- Rafaël Carré <funman@videolan.org>
- git-committer:
- Rafaël Carré <funman@videolan.org> 1206996201 +0200
- git-parent:
[fdf1b8af4e8cd13f7c33a5994a7301b9ab7e9d4c]
- git-author:
- Rafaël Carré <funman@videolan.org> 1206996201 +0200
- Message:
Avoid leaking input items
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r719f576 |
rcf5667b |
|
| 479 | 479 | |
|---|
| 480 | 480 | PL_LOCK; |
|---|
| 481 | | /* Go through all items, and simply free everything without caring |
|---|
| 482 | | * about the tree structure. Do not decref, it will be done by doing |
|---|
| 483 | | * the same thing on the input items array */ |
|---|
| 484 | 481 | FOREACH_ARRAY( playlist_item_t *p_del, p_playlist->all_items ) |
|---|
| 485 | 482 | free( p_del->pp_children ); |
|---|
| | 483 | vlc_gc_decref( p_del->p_input ); |
|---|
| 486 | 484 | free( p_del ); |
|---|
| 487 | 485 | FOREACH_END(); |
|---|
| r0e86a35 |
rcf5667b |
|
| 152 | 152 | p_playlist->p_ml_category->p_input = p_input; |
|---|
| 153 | 153 | |
|---|
| | 154 | vlc_gc_incref( p_input ); |
|---|
| | 155 | |
|---|
| 154 | 156 | vlc_event_attach( &p_input->event_manager, vlc_InputItemSubItemAdded, |
|---|
| 155 | 157 | input_item_subitem_added, p_playlist ); |
|---|
| … | … | |
| 195 | 197 | playlist_Export( p_playlist, psz_dirname, p_playlist->p_ml_category, |
|---|
| 196 | 198 | "export-xspf" ); |
|---|
| 197 | | vlc_gc_decref( p_playlist->p_ml_category->p_input ); |
|---|
| 198 | 199 | stats_TimerStop( p_playlist, STATS_TIMER_ML_DUMP ); |
|---|
| 199 | 200 | |
|---|