Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c01d26f8
authored
Apr 21, 2021
by
olly
Committed by
Oliver Woodman
Apr 21, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Restore DeleteLocalRef usage
Issue: #8845 PiperOrigin-RevId: 369685031
parent
9d4cbd4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
extensions/flac/src/main/jni/flac_jni.cc
extensions/flac/src/main/jni/flac_jni.cc
View file @
c01d26f8
...
@@ -47,6 +47,7 @@ class JavaDataSource : public DataSource {
...
@@ -47,6 +47,7 @@ class JavaDataSource : public DataSource {
if
(
mid
==
NULL
)
{
if
(
mid
==
NULL
)
{
jclass
cls
=
env
->
GetObjectClass
(
flacDecoderJni
);
jclass
cls
=
env
->
GetObjectClass
(
flacDecoderJni
);
mid
=
env
->
GetMethodID
(
cls
,
"read"
,
"(Ljava/nio/ByteBuffer;)I"
);
mid
=
env
->
GetMethodID
(
cls
,
"read"
,
"(Ljava/nio/ByteBuffer;)I"
);
env
->
DeleteLocalRef
(
cls
);
}
}
}
}
...
@@ -57,6 +58,7 @@ class JavaDataSource : public DataSource {
...
@@ -57,6 +58,7 @@ class JavaDataSource : public DataSource {
// Exception is thrown in Java when returning from the native call.
// Exception is thrown in Java when returning from the native call.
result
=
-
1
;
result
=
-
1
;
}
}
env
->
DeleteLocalRef
(
byteBuffer
);
return
result
;
return
result
;
}
}
...
...
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