Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
cc9602fe
Commit
cc9602fe
authored
Aug 08, 2011
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix double free introduced by me in [
7d84269b
]
parent
27be3b6e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
src/playlist/tree.c
src/playlist/tree.c
+1
-4
No files found.
src/playlist/tree.c
View file @
cc9602fe
...
...
@@ -157,11 +157,8 @@ int playlist_NodeDelete( playlist_t *p_playlist, playlist_item_t *p_root,
int
i
;
var_SetInteger
(
p_playlist
,
"playlist-item-deleted"
,
p_root
->
i_id
);
ARRAY_BSEARCH
(
p_playlist
->
all_items
,
->
i_id
,
int
,
p_root
->
i_id
,
i
);
if
(
i
!=
-
1
)
{
vlc_gc_decref
(
p_playlist
->
all_items
.
p_elems
[
i
]
->
p_input
);
printf
(
"deleting %d %p
\n
"
,
i
,
p_playlist
->
all_items
.
p_elems
[
i
]
->
p_input
);
if
(
i
!=
-
1
)
ARRAY_REMOVE
(
p_playlist
->
all_items
,
i
);
}
if
(
p_root
->
i_children
==
-
1
)
{
ARRAY_BSEARCH
(
p_playlist
->
items
,
->
i_id
,
int
,
p_root
->
i_id
,
i
);
...
...
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