Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
82e52ea8
Commit
82e52ea8
authored
May 14, 2008
by
Rafaël Carré
Browse files
Fix memory leak in mosaic bridge
parent
4cc4c675
Changes
1
Show whitespace changes
Inline
Side-by-side
modules/stream_out/mosaic_bridge.c
View file @
82e52ea8
...
...
@@ -483,13 +483,14 @@ static int Del( sout_stream_t *p_stream, sout_stream_id_t *id )
if
(
p_sys
->
p_decoder
!=
NULL
)
{
picture_t
**
pp_ring
=
p_sys
->
p_decoder
->
p_owner
->
pp_pics
;
decoder_owner_sys_t
*
p_owner
=
p_sys
->
p_decoder
->
p_owner
;
if
(
p_sys
->
p_decoder
->
p_module
)
module_Unneed
(
p_sys
->
p_decoder
,
p_sys
->
p_decoder
->
p_module
);
vlc_object_detach
(
p_sys
->
p_decoder
);
vlc_object_release
(
p_sys
->
p_decoder
);
picture_t
**
pp_ring
=
p_owner
->
pp_pics
;
for
(
i
=
0
;
i
<
PICTURE_RING_SIZE
;
i
++
)
{
if
(
pp_ring
[
i
]
!=
NULL
)
...
...
@@ -499,6 +500,7 @@ static int Del( sout_stream_t *p_stream, sout_stream_id_t *id )
free
(
pp_ring
[
i
]
);
}
}
free
(
p_owner
);
}
/* Destroy user specified video filters */
...
...
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