Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
2f43897f
Commit
2f43897f
authored
May 10, 2017
by
Matthieu Bouron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/ffjni: fix local reference leak
Reviewed-by:
Clément Bœsch
<
u@pkh.me
>
parent
5d0b8b1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
ffjni.c
libavcodec/ffjni.c
+5
-0
No files found.
libavcodec/ffjni.c
View file @
2f43897f
...
@@ -303,6 +303,11 @@ int ff_jni_init_jfields(JNIEnv *env, void *jfields, const struct FFJniField *jfi
...
@@ -303,6 +303,11 @@ int ff_jni_init_jfields(JNIEnv *env, void *jfields, const struct FFJniField *jfi
last_clazz
=
*
(
jclass
*
)((
uint8_t
*
)
jfields
+
jfields_mapping
[
i
].
offset
)
=
last_clazz
=
*
(
jclass
*
)((
uint8_t
*
)
jfields
+
jfields_mapping
[
i
].
offset
)
=
global
?
(
*
env
)
->
NewGlobalRef
(
env
,
clazz
)
:
clazz
;
global
?
(
*
env
)
->
NewGlobalRef
(
env
,
clazz
)
:
clazz
;
if
(
global
)
{
(
*
env
)
->
DeleteLocalRef
(
env
,
clazz
);
}
}
else
{
}
else
{
if
(
!
last_clazz
)
{
if
(
!
last_clazz
)
{
...
...
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