Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8df38890 authored by Marco Nelissen's avatar Marco Nelissen Committed by Android (Google) Code Review
Browse files

Merge "Log a warning when a MediaPlayer is finalized without having being released. b/5382634"

parents 9a3d51ed 8dc20847
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -651,6 +651,10 @@ static void
android_media_MediaPlayer_native_finalize(JNIEnv *env, jobject thiz)
{
    LOGV("native_finalize");
    sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
    if (mp != NULL) {
        LOGW("MediaPlayer finalized without being released");
    }
    android_media_MediaPlayer_release(env, thiz);
}