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
1d2139aa
Commit
1d2139aa
authored
Jun 29, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix corner case memory leak
parent
42779914
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
modules/codec/schroedinger.c
modules/codec/schroedinger.c
+11
-6
No files found.
modules/codec/schroedinger.c
View file @
1d2139aa
...
@@ -112,18 +112,23 @@ static int OpenDecoder( vlc_object_t *p_this )
...
@@ -112,18 +112,23 @@ static int OpenDecoder( vlc_object_t *p_this )
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
/* Allocate the memory needed to store the decoder's structure */
p_sys
=
malloc
(
sizeof
(
decoder_sys_t
));
if
(
p_sys
==
NULL
)
return
VLC_ENOMEM
;
/* Initialise the schroedinger (and hence liboil libraries */
/* Initialise the schroedinger (and hence liboil libraries */
/* This does no allocation and is safe to call */
/* This does no allocation and is safe to call */
schro_init
();
schro_init
();
/* Initialise the schroedinger decoder */
/* Initialise the schroedinger decoder */
if
(
!
(
p_schro
=
schro_decoder_new
())
)
return
VLC_EGENERIC
;
if
(
!
(
p_schro
=
schro_decoder_new
())
)
{
/* Allocate the memory needed to store the decoder's structure */
free
(
p_sys
);
if
(
(
p_dec
->
p_sys
=
p_sys
=
return
VLC_EGENERIC
;
(
decoder_sys_t
*
)
malloc
(
sizeof
(
decoder_sys_t
))
)
==
NULL
)
}
return
VLC_ENOMEM
;
p_dec
->
p_sys
=
p_sys
;
p_sys
->
p_schro
=
p_schro
;
p_sys
->
p_schro
=
p_schro
;
p_sys
->
p_format
=
NULL
;
p_sys
->
p_format
=
NULL
;
p_sys
->
i_lastpts
=
-
1
;
p_sys
->
i_lastpts
=
-
1
;
...
...
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