Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
a81a3d31
Commit
a81a3d31
authored
May 09, 2009
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlc_media_list_player_release: do not leak memory
(cherry picked from commit
51695589
)
parent
8d2f29e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
src/control/media_list_player.c
src/control/media_list_player.c
+25
-1
No files found.
src/control/media_list_player.c
View file @
a81a3d31
...
...
@@ -295,7 +295,31 @@ libvlc_media_list_player_new( libvlc_instance_t * p_instance,
**************************************************************************/
void
libvlc_media_list_player_release
(
libvlc_media_list_player_t
*
p_mlp
)
{
free
(
p_mlp
);
if
(
!
p_mlp
)
return
;
vlc_mutex_lock
(
&
p_mlp
->
object_lock
);
p_mlp
->
i_refcount
--
;
if
(
p_mlp
->
i_refcount
>
0
)
{
vlc_mutex_unlock
(
&
p_mlp
->
object_lock
);
return
;
}
vlc_mutex_unlock
(
&
p_mlp
->
object_lock
);
vlc_mutex_destroy
(
&
p_mlp
->
object_lock
);
libvlc_event_manager_release
(
p_mlp
->
p_event_manager
);
libvlc_media_player_release
(
p_mlp
->
p_mi
);
if
(
p_mlp
->
p_mlist
)
{
uninstall_playlist_observer
(
p_mlp
);
libvlc_media_list_release
(
p_mlp
->
p_mlist
);
}
free
(
p_mlp
->
current_playing_item_path
);
free
(
p_mlp
);
}
/**************************************************************************
...
...
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