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
f7560a07
Commit
f7560a07
authored
Dec 10, 2004
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Memory leaks
parent
01aca2cc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
src/playlist/item-ext.c
src/playlist/item-ext.c
+10
-0
src/playlist/item.c
src/playlist/item.c
+7
-0
src/playlist/view.c
src/playlist/view.c
+5
-1
No files found.
src/playlist/item-ext.c
View file @
f7560a07
...
...
@@ -269,6 +269,8 @@ int playlist_AddItem( playlist_t *p_playlist, playlist_item_t *p_item,
var_Set
(
p_playlist
,
"intf-change"
,
val
);
}
free
(
p_add
);
return
p_item
->
input
.
i_id
;
}
...
...
@@ -320,6 +322,7 @@ int playlist_NodeAddItem( playlist_t *p_playlist, playlist_item_t *p_item,
{
playlist_ItemDelete
(
p_item
);
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
free
(
p_add
);
return
-
1
;
}
}
...
...
@@ -377,6 +380,8 @@ int playlist_NodeAddItem( playlist_t *p_playlist, playlist_item_t *p_item,
val
.
b_bool
=
VLC_TRUE
;
// var_Set( p_playlist, "intf-change", val );
//
free
(
p_add
);
return
p_item
->
input
.
i_id
;
}
...
...
@@ -638,10 +643,15 @@ int playlist_Delete( playlist_t * p_playlist, int i_id )
int
playlist_Clear
(
playlist_t
*
p_playlist
)
{
int
i
;
playlist_view_t
*
p_view
;
for
(
i
=
p_playlist
->
i_size
;
i
>
0
;
i
--
)
{
playlist_Delete
(
p_playlist
,
p_playlist
->
pp_items
[
0
]
->
input
.
i_id
);
}
for
(
i
=
0
;
i
<
p_playlist
->
i_views
;
i
++
)
{
playlist_ViewEmpty
(
p_playlist
,
i
,
VLC_TRUE
);
}
return
VLC_SUCCESS
;
}
...
...
src/playlist/item.c
View file @
f7560a07
...
...
@@ -128,6 +128,13 @@ int playlist_ItemDelete( playlist_item_t *p_item )
if
(
p_item
->
input
.
i_options
==
1
)
free
(
p_item
->
input
.
ppsz_options
);
}
for
(
;
p_item
->
i_parents
>
0
;
)
{
struct
item_parent_t
*
p_parent
=
p_item
->
pp_parents
[
0
];
REMOVE_ELEM
(
p_item
->
pp_parents
,
p_item
->
i_parents
,
0
);
free
(
p_parent
);
}
vlc_mutex_unlock
(
&
p_item
->
input
.
lock
);
vlc_mutex_destroy
(
&
p_item
->
input
.
lock
);
...
...
src/playlist/view.c
View file @
f7560a07
...
...
@@ -183,6 +183,7 @@ int playlist_ViewUpdate( playlist_t *p_playlist, int i_view)
SORT_AUTHOR
,
ORDER_NORMAL
);
}
return
VLC_SUCCESS
;
}
...
...
@@ -294,6 +295,8 @@ playlist_item_t * playlist_NodeCreate( playlist_t *p_playlist, int i_view,
val
.
p_address
=
p_add
;
var_Set
(
p_playlist
,
"item-append"
,
val
);
free
(
p_add
);
return
p_item
;
}
...
...
@@ -359,6 +362,7 @@ int playlist_NodeDelete( playlist_t *p_playlist, playlist_item_t *p_root,
else
if
(
b_delete_items
)
{
/* Delete the item here */
playlist_Delete
(
p_playlist
,
p_root
->
pp_children
[
i
]
->
input
.
i_id
);
}
}
/* Delete the node */
...
...
@@ -423,7 +427,7 @@ int playlist_NodeInsert( playlist_t *p_playlist,
if
(
b_found
==
VLC_FALSE
)
{
struct
item_parent_t
*
p_ip
=
(
struct
item_parent_t
*
)
malloc
(
sizeof
(
struct
item_parent_t
)
);
malloc
(
sizeof
(
struct
item_parent_t
)
);
p_ip
->
i_view
=
i_view
;
p_ip
->
p_parent
=
p_parent
;
...
...
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