Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
fce46541
Commit
fce46541
authored
Apr 02, 2015
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlcjni: fix local ref leak
parent
5a2f6f64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
libvlc/jni/libvlcjni.c
libvlc/jni/libvlcjni.c
+2
-0
No files found.
libvlc/jni/libvlcjni.c
View file @
fce46541
...
...
@@ -153,6 +153,7 @@ static void vlc_event_callback(const libvlc_event_t *ev, void *data)
jmethodID
putLong
=
(
*
env
)
->
GetMethodID
(
env
,
clsBundle
,
"putLong"
,
"(Ljava/lang/String;J)V"
);
jmethodID
putFloat
=
(
*
env
)
->
GetMethodID
(
env
,
clsBundle
,
"putFloat"
,
"(Ljava/lang/String;F)V"
);
jmethodID
putString
=
(
*
env
)
->
GetMethodID
(
env
,
clsBundle
,
"putString"
,
"(Ljava/lang/String;Ljava/lang/String;)V"
);
(
*
env
)
->
DeleteLocalRef
(
env
,
clsBundle
);
if
(
ev
->
type
==
libvlc_MediaPlayerPositionChanged
)
{
jstring
sData
=
(
*
env
)
->
NewStringUTF
(
env
,
"data"
);
...
...
@@ -211,6 +212,7 @@ static void vlc_event_callback(const libvlc_event_t *ev, void *data)
}
else
{
LOGE
(
"EventHandler: failed to get the callback method"
);
}
(
*
env
)
->
DeleteLocalRef
(
env
,
cls
);
end:
(
*
env
)
->
DeleteLocalRef
(
env
,
bundle
);
...
...
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