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
3bda52ae
Commit
3bda52ae
authored
Apr 23, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/playlist/item.c: fixed memory leak.
parent
71e657ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
25 deletions
+19
-25
src/playlist/item.c
src/playlist/item.c
+19
-25
No files found.
src/playlist/item.c
View file @
3bda52ae
...
...
@@ -75,46 +75,40 @@ playlist_item_t * __playlist_ItemNew( vlc_object_t *p_obj,
*/
void
playlist_ItemDelete
(
playlist_item_t
*
p_item
)
{
#if 0
int i,j;
#endif
vlc_mutex_lock
(
&
p_item
->
input
.
lock
);
if
(
p_item
->
input
.
psz_name
)
free
(
p_item
->
input
.
psz_name
);
if
(
p_item
->
input
.
psz_uri
)
free
(
p_item
->
input
.
psz_uri
);
#if 0
/* Free the info categories. Welcome to the segfault factory */
if( p_item->i_categories > 0 )
/* Free the info categories */
if
(
p_item
->
input
.
i_categories
>
0
)
{
for( i = 0; i < p_item->i_categories; i++ )
int
i
,
j
;
for
(
i
=
0
;
i
<
p_item
->
input
.
i_categories
;
i
++
)
{
for( j= 0 ; j < p_item->pp_categories[i]->i_infos; j++)
info_category_t
*
p_category
=
p_item
->
input
.
pp_categories
[
i
];
for
(
j
=
0
;
j
<
p_category
->
i_infos
;
j
++
)
{
if( p_
item->pp_categories[i]->pp_infos[j]->psz_name
)
if
(
p_
category
->
pp_infos
[
j
]
->
psz_name
)
{
free( p_item->pp_categories[i]->
pp_infos[j]->psz_name);
free
(
p_category
->
pp_infos
[
j
]
->
psz_name
);
}
if( p_
item->pp_categories[i]->pp_infos[j]->psz_value
)
if
(
p_
category
->
pp_infos
[
j
]
->
psz_value
)
{
free( p_item->pp_categories[i]->
pp_infos[j]->psz_value);
free
(
p_category
->
pp_infos
[
j
]
->
psz_value
);
}
free( p_
item->pp_categories[i]
->pp_infos[j] );
free
(
p_
category
->
pp_infos
[
j
]
);
}
if( p_item->pp_categories[i]->i_infos )
free( p_item->pp_categories[i]->pp_infos );
if( p_item->pp_categories[i]->psz_name)
{
free( p_item->pp_categories[i]->psz_name );
}
free( p_item->pp_categories[i] );
if
(
p_category
->
i_infos
)
free
(
p_category
->
pp_infos
);
if
(
p_category
->
psz_name
)
free
(
p_category
->
psz_name
);
free
(
p_category
);
}
free( p_item->pp_categories );
free
(
p_item
->
input
.
pp_categories
);
}
#endif
vlc_mutex_unlock
(
&
p_item
->
input
.
lock
);
vlc_mutex_destroy
(
&
p_item
->
input
.
lock
);
...
...
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