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
825e270d
Commit
825e270d
authored
Nov 04, 2014
by
hkuang
Committed by
Gerrit Code Review
Nov 04, 2014
Browse files
Merge "Fix the memory leak due to missing free frame_mvs."
parents
0593ce39
23da920a
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/common/vp9_alloccommon.c
View file @
825e270d
...
...
@@ -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