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
3a0036f0
Commit
3a0036f0
authored
Aug 17, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlc_mediacontrol: fix object leaks.
parent
7695c238
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/control/mediacontrol_audio_video.c
src/control/mediacontrol_audio_video.c
+6
-0
No files found.
src/control/mediacontrol_audio_video.c
View file @
3a0036f0
...
...
@@ -85,6 +85,7 @@ mediacontrol_snapshot( mediacontrol_Instance *self,
if
(
vout_GetSnapshot
(
p_vout
,
&
p_image
,
NULL
,
&
fmt
,
"png"
,
500
*
1000
)
)
{
vlc_object_release
(
p_vout
);
RAISE_NULL
(
mediacontrol_InternalException
,
"Snapshot exception"
);
return
NULL
;
}
...
...
@@ -109,6 +110,8 @@ mediacontrol_snapshot( mediacontrol_Instance *self,
if
(
!
p_pic
)
RAISE_NULL
(
mediacontrol_InternalException
,
"Out of memory"
);
vlc_object_release
(
p_vout
);
return
p_pic
;
}
...
...
@@ -150,6 +153,9 @@ mediacontrol_display_text( mediacontrol_Instance *self,
RAISE_VOID
(
mediacontrol_InternalException
,
"No input"
);
}
p_vout
=
input_GetVout
(
p_input
);
/*FIXME: take care of the next fixme that can use p_input */
vlc_object_release
(
p_input
);
if
(
!
p_vout
)
{
RAISE_VOID
(
mediacontrol_InternalException
,
"No video output"
);
...
...
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