Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
7d478fff
Commit
7d478fff
authored
Oct 22, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Yield libvlc and fix corner case memleak
parent
0dbf6b69
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/control/log.c
src/control/log.c
+7
-2
No files found.
src/control/log.c
View file @
7d478fff
...
...
@@ -60,7 +60,6 @@ void libvlc_set_log_verbosity( libvlc_instance_t *p_instance, unsigned level, li
libvlc_log_t
*
libvlc_log_open
(
const
libvlc_instance_t
*
p_instance
,
libvlc_exception_t
*
p_e
)
{
struct
libvlc_log_t
*
p_log
=
(
struct
libvlc_log_t
*
)
malloc
(
sizeof
(
struct
libvlc_log_t
));
...
...
@@ -69,8 +68,13 @@ libvlc_log_t *libvlc_log_open( const libvlc_instance_t *p_instance, libvlc_excep
p_log
->
p_instance
=
p_instance
;
p_log
->
p_messages
=
msg_Subscribe
(
p_instance
->
p_libvlc_int
,
MSG_QUEUE_NORMAL
);
if
(
!
p_log
->
p_messages
)
RAISENULL
(
"Out of memory"
);
if
(
!
p_log
->
p_messages
)
{
free
(
p_log
);
RAISENULL
(
"Out of memory"
);
}
libvlc_retain
(
p_instance
);
return
p_log
;
}
...
...
@@ -79,6 +83,7 @@ void libvlc_log_close( libvlc_log_t *p_log, libvlc_exception_t *p_e )
if
(
p_log
&&
p_log
->
p_messages
)
{
msg_Unsubscribe
(
p_log
->
p_instance
->
p_libvlc_int
,
p_log
->
p_messages
);
libvlc_release
(
p_log
->
p_instance
);
free
(
p_log
);
}
else
...
...
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