Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gautam Chitnis
web-ui-redesign
Commits
de8a547c
Commit
de8a547c
authored
Dec 29, 2007
by
Rafaël Carré
Browse files
fix input item mem leak
parent
15def40d
Changes
1
Show whitespace changes
Inline
Side-by-side
src/playlist/loadsave.c
View file @
de8a547c
...
@@ -151,7 +151,7 @@ int playlist_MLLoad( playlist_t *p_playlist )
...
@@ -151,7 +151,7 @@ int playlist_MLLoad( playlist_t *p_playlist )
goto
error
;
goto
error
;
p_playlist
->
p_ml_onelevel
->
p_input
=
p_playlist
->
p_ml_onelevel
->
p_input
=
p_playlist
->
p_ml_category
->
p_input
=
p_input
;
/* We leak that apparently */
p_playlist
->
p_ml_category
->
p_input
=
p_input
;
vlc_event_attach
(
&
p_input
->
event_manager
,
vlc_InputItemSubItemAdded
,
vlc_event_attach
(
&
p_input
->
event_manager
,
vlc_InputItemSubItemAdded
,
input_item_subitem_added
,
p_playlist
);
input_item_subitem_added
,
p_playlist
);
...
@@ -196,6 +196,7 @@ int playlist_MLDump( playlist_t *p_playlist )
...
@@ -196,6 +196,7 @@ int playlist_MLDump( playlist_t *p_playlist )
stats_TimerStart
(
p_playlist
,
"ML Dump"
,
STATS_TIMER_ML_DUMP
);
stats_TimerStart
(
p_playlist
,
"ML Dump"
,
STATS_TIMER_ML_DUMP
);
playlist_Export
(
p_playlist
,
psz_dirname
,
p_playlist
->
p_ml_category
,
playlist_Export
(
p_playlist
,
psz_dirname
,
p_playlist
->
p_ml_category
,
"export-xspf"
);
"export-xspf"
);
vlc_gc_decref
(
p_playlist
->
p_ml_category
->
p_input
);
stats_TimerStop
(
p_playlist
,
STATS_TIMER_ML_DUMP
);
stats_TimerStop
(
p_playlist
,
STATS_TIMER_ML_DUMP
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment