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

Commit 82ea6f59 authored by Anton Ivanov's avatar Anton Ivanov
Browse files

Switch BBQ constuction to use sp<>::make().

Bug: 393217449
Test: presubmit
Flag: EXEMPT_refactor
Change-Id: Iee0f9416b8b66aca4d1daf1411950e9fb8291b61
parent 1088bc43
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@
#include <nativehelper/JNIHelp.h>
#include <utils/Log.h>
#include <utils/RefBase.h>
#include <utils/StrongPointer.h>

#include "core_jni_helpers.h"

@@ -124,7 +125,7 @@ private:
static jlong nativeCreate(JNIEnv* env, jclass clazz, jstring jName,
                          jboolean updateDestinationFrame) {
    ScopedUtfChars name(env, jName);
    sp<BLASTBufferQueue> queue = new BLASTBufferQueue(name.c_str(), updateDestinationFrame);
    sp<BLASTBufferQueue> queue = sp<BLASTBufferQueue>::make(name.c_str(), updateDestinationFrame);
    queue->incStrong((void*)nativeCreate);
    return reinterpret_cast<jlong>(queue.get());
}