Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Gautam Chitnis
web-ui-redesign
Commits
37db19eb
Commit
37db19eb
authored
Oct 20, 2007
by
Rémi Denis-Courmont
Browse files
Add mediacontrol_exception_cleanup() consistent with mediacontrol_exception_init().
parent
ac92c147
Changes
2
Hide whitespace changes
Inline
Side-by-side
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
);
}
free
(
exception
->
message
);
void
mediacontrol_exception_free
(
mediacontrol_Exception
*
exception
)
{
mediacontrol_exception_cleanup
(
exception
);
free
(
exception
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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