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
8efb3b63
Commit
8efb3b63
authored
Dec 31, 2013
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlm: reduce deletion complexity and help analyzers
parent
0781db04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
src/input/vlmshell.c
src/input/vlmshell.c
+5
-6
No files found.
src/input/vlmshell.c
View file @
8efb3b63
...
...
@@ -990,18 +990,17 @@ static vlm_schedule_sys_t *vlm_ScheduleNew( vlm_t *vlm, const char *psz_name )
/* for now, simple delete. After, del with options (last arg) */
void
vlm_ScheduleDelete
(
vlm_t
*
vlm
,
vlm_schedule_sys_t
*
sched
)
{
int
i
;
if
(
sched
==
NULL
)
return
;
TAB_REMOVE
(
vlm
->
i_schedule
,
vlm
->
schedule
,
sched
);
if
(
vlm
->
i_schedule
==
0
)
free
(
vlm
->
schedule
);
free
(
sched
->
psz_name
);
while
(
sched
->
i_command
)
{
char
*
psz_cmd
=
sched
->
command
[
0
];
TAB_REMOVE
(
sched
->
i_command
,
sched
->
command
,
psz_cmd
);
free
(
psz_cmd
);
}
for
(
i
=
0
;
i
<
sched
->
i_command
;
i
++
)
free
(
sched
->
command
[
i
]
);
free
(
sched
->
command
);
free
(
sched
);
}
...
...
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