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
d2e7edbd
Commit
d2e7edbd
authored
Feb 21, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlc_free: wrapper around free() when the C run-time is not known
parent
b6cada70
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
include/vlc/libvlc.h
include/vlc/libvlc.h
+7
-0
src/control/core.c
src/control/core.c
+5
-0
src/libvlc.sym
src/libvlc.sym
+1
-0
No files found.
include/vlc/libvlc.h
View file @
d2e7edbd
...
...
@@ -224,6 +224,13 @@ struct vlc_object_t;
*/
VLC_PUBLIC_API
struct
vlc_object_t
*
libvlc_get_vlc_instance
(
libvlc_instance_t
*
);
/**
* Frees an heap allocation (char *) returned by a LibVLC API.
* If you know you're using the same underlying C run-time as the LibVLC
* implementation, then you can call ANSI C free() directly instead.
*/
VLC_PUBLIC_API
void
libvlc_free
(
void
*
ptr
);
/** @}*/
/*****************************************************************************
...
...
src/control/core.c
View file @
d2e7edbd
...
...
@@ -215,3 +215,8 @@ vlc_object_t *libvlc_get_vlc_instance( libvlc_instance_t* p_instance )
vlc_object_hold
(
p_instance
->
p_libvlc_int
)
;
return
(
vlc_object_t
*
)
p_instance
->
p_libvlc_int
;
}
void
libvlc_free
(
void
*
ptr
)
{
free
(
ptr
);
}
src/libvlc.sym
View file @
d2e7edbd
...
...
@@ -31,6 +31,7 @@ libvlc_exception_get_message
libvlc_exception_init
libvlc_exception_raise
libvlc_exception_raised
libvlc_free
libvlc_get_changeset
libvlc_get_compiler
libvlc_get_fullscreen
...
...
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