Changeset 25b8641d713521fd4e0114b31b93516273845034
- Timestamp:
- 24/04/08 15:28:59
(6 months ago)
- Author:
- Rafaël Carré <funman@videolan.org>
- git-committer:
- Rafaël Carré <funman@videolan.org> 1209043739 +0200
- git-parent:
[1b069355a669ef74b04994e9c210774365795019]
- git-author:
- Rafaël Carré <funman@videolan.org> 1209043739 +0200
- Message:
Fix input item leaking
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r449fd28 |
r25b8641 |
|
| 1432 | 1432 | { |
|---|
| 1433 | 1433 | msg_rc( "Trying to add %s to playlist.", newval.psz_string ); |
|---|
| 1434 | | if( playlist_AddInput( p_playlist, p_item, |
|---|
| | 1434 | int i_ret =playlist_AddInput( p_playlist, p_item, |
|---|
| 1435 | 1435 | PLAYLIST_GO|PLAYLIST_APPEND, PLAYLIST_END, true, |
|---|
| 1436 | | false ) != VLC_SUCCESS ) |
|---|
| | 1436 | false ); |
|---|
| | 1437 | vlc_gc_decref( p_item ); |
|---|
| | 1438 | if( i_ret != VLC_SUCCESS ) |
|---|
| 1437 | 1439 | { |
|---|
| 1438 | 1440 | return VLC_EGENERIC; |
|---|
| r449fd28 |
r25b8641 |
|
| 1291 | 1291 | int i_ret = ( playlist_NodeAddInput( p->p_playlist, p_input, p_dest, |
|---|
| 1292 | 1292 | PLAYLIST_PREPARSE, i_pos, false ) != VLC_SUCCESS ); |
|---|
| | 1293 | vlc_gc_decref( p_input ); |
|---|
| 1293 | 1294 | wxDnDLocaleFree( psz_utf8 ); |
|---|
| 1294 | 1295 | if( i_ret != VLC_SUCCESS ) |
|---|
| r449fd28 |
r25b8641 |
|
| 1636 | 1636 | playlist_AddInput( p_playlist, p_input, |
|---|
| 1637 | 1637 | PLAYLIST_GO, PLAYLIST_END, true, false ); |
|---|
| | 1638 | vlc_gc_decref( p_input ); |
|---|
| 1638 | 1639 | vlc_object_release(p_playlist); |
|---|
| 1639 | 1640 | } |
|---|
| r449fd28 |
r25b8641 |
|
| 222 | 222 | PLAYLIST_APPEND, PLAYLIST_END, NULL, NULL, |
|---|
| 223 | 223 | false ); |
|---|
| | 224 | vlc_gc_decref( p_input ); |
|---|
| 224 | 225 | } else if ( node->isContainerNode() ) |
|---|
| 225 | 226 | { |
|---|
| r449fd28 |
r25b8641 |
|
| 876 | 876 | PLAYLIST_APPEND, PLAYLIST_END, &i_cat, NULL, |
|---|
| 877 | 877 | false ); |
|---|
| | 878 | vlc_gc_decref( p_input ); |
|---|
| 878 | 879 | /* TODO: do this better by storing ids */ |
|---|
| 879 | 880 | playlist_item_t *p_node = playlist_ItemGetById( p_playlist, i_cat, false ); |
|---|