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

Commit a22521c4 authored by Eric Laurent's avatar Eric Laurent Committed by android-build-merger
Browse files

Merge "Delete Visualizer before lpJniStorage" am: 03c209b2 am: 913e2f83 am: c8e1206a

am: b30da87f

* commit 'b30da87f':
  Delete Visualizer before lpJniStorage

Change-Id: I73f816c4706553f03664a7c3a4132d00dd9283a9
parents fd47dd17 b30da87f
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -435,10 +435,13 @@ setup_failure:

// ----------------------------------------------------------------------------
static void android_media_visualizer_native_release(JNIEnv *env,  jobject thiz) {
    // ensure that lpVisualizer is deleted before lpJniStorage
    {
        sp<Visualizer> lpVisualizer = setVisualizer(env, thiz, 0);
        if (lpVisualizer == 0) {
            return;
        }
    }

    // delete the JNI data
    VisualizerJniStorage* lpJniStorage =