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

Commit 301ef0b7 authored by Santiago Seifert's avatar Santiago Seifert Committed by Automerger Merge Worker
Browse files

Merge "Replace new with sp<>::make" am: 88aed3b8 am: e1e9a0dc

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1878353

Change-Id: I5d2649e0fa06333a495c6ce0bdad3aff1683e956
parents 1a29d234 e1e9a0dc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -953,7 +953,7 @@ android_media_MediaPlayer_native_setup(JNIEnv *env, jobject thiz, jobject weak_t
    Parcel* parcel = parcelForJavaObject(env, jAttributionSource);
    android::content::AttributionSourceState attributionSource;
    attributionSource.readFromParcel(parcel);
    sp<MediaPlayer> mp = new MediaPlayer(attributionSource);
    sp<MediaPlayer> mp = sp<MediaPlayer>::make(attributionSource);
    if (mp == NULL) {
        jniThrowException(env, "java/lang/RuntimeException", "Out of memory");
        return;