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

Commit 6f766537 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "XmlBlock: if you want to check the result of new, you need nothrow new." into main

parents c3838f85 7d116d7a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ static jlong android_content_XmlBlock_nativeCreateParseState(JNIEnv* env, jobjec
        return 0;
    }

    ResXMLParser* st = new ResXMLParser(*osb);
    ResXMLParser* st = new(std::nothrow) ResXMLParser(*osb);
    if (st == NULL) {
        jniThrowException(env, "java/lang/OutOfMemoryError", NULL);
        return 0;