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
37db19eb
Commit
37db19eb
authored
Oct 20, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add mediacontrol_exception_cleanup() consistent with mediacontrol_exception_init().
parent
ac92c147
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
include/vlc/mediacontrol.h
include/vlc/mediacontrol.h
+8
-1
src/control/mediacontrol_util.c
src/control/mediacontrol_util.c
+8
-4
No files found.
include/vlc/mediacontrol.h
View file @
37db19eb
...
...
@@ -86,7 +86,14 @@ VLC_PUBLIC_API void
mediacontrol_exception_init
(
mediacontrol_Exception
*
exception
);
/**
* Free an exception structure.
* Clean up an existing exception structure after use.
* \param p_exception the exception to clean up.
*/
VLC_PUBLIC_API
void
mediacontrol_exception_cleanup
(
mediacontrol_Exception
*
exception
);
/**
* Free an exception structure created with mediacontrol_exception_create().
* \return the exception
*/
VLC_PUBLIC_API
void
mediacontrol_exception_free
(
mediacontrol_Exception
*
exception
);
...
...
src/control/mediacontrol_util.c
View file @
37db19eb
...
...
@@ -281,12 +281,16 @@ mediacontrol_exception_init( mediacontrol_Exception *exception )
}
void
mediacontrol_exception_
free
(
mediacontrol_Exception
*
exception
)
mediacontrol_exception_
cleanup
(
mediacontrol_Exception
*
exception
)
{
if
(
!
exception
)
return
;
if
(
exception
)
free
(
exception
->
message
);
}
void
mediacontrol_exception_free
(
mediacontrol_Exception
*
exception
)
{
mediacontrol_exception_cleanup
(
exception
);
free
(
exception
);
}
...
...
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