[Android] Finalize() should be protected
Jean-Baptiste Kempf
git at videolan.org
Fri Jul 18 20:46:03 CEST 2014
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Jul 18 20:17:18 2014 +0200| [a773ddfd4d33fde15373974786c18cc995a9564c] | committer: Jean-Baptiste Kempf
Finalize() should be protected
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=a773ddfd4d33fde15373974786c18cc995a9564c
---
vlc-android/src/org/videolan/libvlc/LibVLC.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/libvlc/LibVLC.java b/vlc-android/src/org/videolan/libvlc/LibVLC.java
index ec8571f..4af6857 100644
--- a/vlc-android/src/org/videolan/libvlc/LibVLC.java
+++ b/vlc-android/src/org/videolan/libvlc/LibVLC.java
@@ -162,7 +162,7 @@ public class LibVLC {
* destroy() before exiting.
*/
@Override
- public void finalize() {
+ protected void finalize() {
if (mLibVlcInstance != 0) {
Log.d(TAG, "LibVLC is was destroyed yet before finalize()");
destroy();
More information about the Android
mailing list