Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
0b18806c
Commit
0b18806c
authored
Nov 22, 2003
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/playlist/item.c:
* fixed a minor memory leak
parent
37b73926
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
src/playlist/item.c
src/playlist/item.c
+14
-1
No files found.
src/playlist/item.c
View file @
0b18806c
...
...
@@ -2,7 +2,7 @@
* item.c : Playlist item functions
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: item.c,v 1.
1 2003/10/29 18:00:46 zorglub
Exp $
* $Id: item.c,v 1.
2 2003/11/22 12:35:17 sigmunau
Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
...
...
@@ -139,6 +139,19 @@ int playlist_AddItem( playlist_t *p_playlist, playlist_item_t * p_item,
{
free
(
p_item
->
psz_uri
);
}
if
(
p_item
->
i_options
)
{
int
i_opt
;
for
(
i_opt
=
0
;
i_opt
<
p_item
->
i_options
;
i_opt
++
)
{
free
(
p_item
->
ppsz_options
[
i_opt
]
);
}
free
(
p_item
->
ppsz_options
);
}
if
(
p_item
->
psz_author
)
{
free
(
p_item
->
psz_author
);
}
free
(
p_item
);
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
return
0
;
...
...
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