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

Commit 03c209b2 authored by Eric Laurent's avatar Eric Laurent Committed by Gerrit Code Review
Browse files

Merge "Delete Visualizer before lpJniStorage"

parents 7211131e 7b9f5be9
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 =