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
Hide 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)
...
@@ -289,16 +289,19 @@ static int Open(vlc_object_t *p_this)
if
(
!
pictures
)
if
(
!
pictures
)
goto
error
;
goto
error
;
for
(
unsigned
int
i
=
0
;
i
<
p_sys
->
port
.
i_buffers
;
i
++
)
{
for
(
unsigned
int
i
=
0
;
i
<
p_sys
->
port
.
i_buffers
;
i
++
)
{
picture_resource_t
resource
=
{
0
};
picture_sys_t
*
picsys
=
malloc
(
sizeof
(
*
picsys
));
picture_resource_t
*
rsc
=
&
resource
;
if
(
unlikely
(
picsys
==
NULL
))
rsc
->
p_sys
=
malloc
(
sizeof
(
*
rsc
->
p_sys
));
if
(
!
rsc
->
p_sys
)
goto
error
;
goto
error
;
rsc
->
p_
sys
->
sys
=
p_sys
;
pic
sys
->
sys
=
p_sys
;
picture_t
*
picture
=
picture_NewFromResource
(
&
fmt
,
rsc
);
picture_resource_t
resource
=
{
.
p_sys
=
picsys
};
if
(
!
picture
)
picture_t
*
picture
=
picture_NewFromResource
(
&
fmt
,
&
resource
);
if
(
unlikely
(
picture
==
NULL
))
{
free
(
picsys
);
goto
error
;
goto
error
;
}
pictures
[
i
]
=
picture
;
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