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
000feece
Commit
000feece
authored
Jan 02, 2016
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: fix memory leaks (fixes #14730)
parent
41754b7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
test/libvlc/media_list.c
test/libvlc/media_list.c
+7
-3
No files found.
test/libvlc/media_list.c
View file @
000feece
...
...
@@ -26,7 +26,7 @@
static
void
test_media_list
(
const
char
**
argv
,
int
argc
)
{
libvlc_instance_t
*
vlc
;
libvlc_media_t
*
md1
,
*
md2
,
*
md3
,
*
md4
;
libvlc_media_t
*
md
,
*
md
1
,
*
md2
,
*
md3
,
*
md4
;
libvlc_media_list_t
*
ml
;
int
ret
;
...
...
@@ -77,9 +77,13 @@ static void test_media_list (const char ** argv, int argc)
assert
(
libvlc_media_list_index_of_item
(
ml
,
md3
)
==
2
);
/* test right returning descriptor*/
assert
(
libvlc_media_list_item_at_index
(
ml
,
0
)
==
md2
);
md
=
libvlc_media_list_item_at_index
(
ml
,
0
);
assert
(
md
==
md2
);
libvlc_media_release
(
md
);
assert
(
libvlc_media_list_item_at_index
(
ml
,
2
)
==
md3
);
md
=
libvlc_media_list_item_at_index
(
ml
,
2
);
assert
(
md
==
md3
);
libvlc_media_release
(
md
);
/* test if give errors, when it should */
/* have 4 items, so index 4 should give error */
...
...
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