Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
23da920a
Commit
23da920a
authored
Nov 03, 2014
by
hkuang
Browse files
Fix the memory leak due to missing free frame_mvs.
Change-Id: I2ceee7341d906259002c0ea31ea009ae32c04bfd
parent
1e753387
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/common/vp9_alloccommon.c
View file @
23da920a
...
...
@@ -87,14 +87,14 @@ void vp9_free_ref_frame_buffers(VP9_COMMON *cm) {
int
i
;
for
(
i
=
0
;
i
<
FRAME_BUFFERS
;
++
i
)
{
vp9_free_frame_buffer
(
&
cm
->
frame_bufs
[
i
].
buf
);
if
(
cm
->
frame_bufs
[
i
].
ref_count
>
0
&&
cm
->
frame_bufs
[
i
].
raw_frame_buffer
.
data
!=
NULL
)
{
cm
->
release_fb_cb
(
cm
->
cb_priv
,
&
cm
->
frame_bufs
[
i
].
raw_frame_buffer
);
vpx_free
(
cm
->
frame_bufs
[
i
].
mvs
);
cm
->
frame_bufs
[
i
].
ref_count
=
0
;
}
vpx_free
(
cm
->
frame_bufs
[
i
].
mvs
);
cm
->
frame_bufs
[
i
].
mvs
=
NULL
;
vp9_free_frame_buffer
(
&
cm
->
frame_bufs
[
i
].
buf
);
}
vp9_free_frame_buffer
(
&
cm
->
post_proc_buffer
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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