Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
e1ee8b06
Commit
e1ee8b06
authored
Jul 14, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
omx: fix memory leak on error
parent
a390896f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
modules/codec/omxil/vout.c
modules/codec/omxil/vout.c
+10
-7
No files found.
modules/codec/omxil/vout.c
View file @
e1ee8b06
...
...
@@ -289,16 +289,19 @@ static int Open(vlc_object_t *p_this)
if
(
!
pictures
)
goto
error
;
for
(
unsigned
int
i
=
0
;
i
<
p_sys
->
port
.
i_buffers
;
i
++
)
{
picture_resource_t
resource
=
{
0
};
picture_resource_t
*
rsc
=
&
resource
;
rsc
->
p_sys
=
malloc
(
sizeof
(
*
rsc
->
p_sys
));
if
(
!
rsc
->
p_sys
)
picture_sys_t
*
picsys
=
malloc
(
sizeof
(
*
picsys
));
if
(
unlikely
(
picsys
==
NULL
))
goto
error
;
rsc
->
p_
sys
->
sys
=
p_sys
;
pic
sys
->
sys
=
p_sys
;
picture_t
*
picture
=
picture_NewFromResource
(
&
fmt
,
rsc
);
if
(
!
picture
)
picture_resource_t
resource
=
{
.
p_sys
=
picsys
};
picture_t
*
picture
=
picture_NewFromResource
(
&
fmt
,
&
resource
);
if
(
unlikely
(
picture
==
NULL
))
{
free
(
picsys
);
goto
error
;
}
pictures
[
i
]
=
picture
;
}
...
...
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