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

Commit b44bbf6e authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "opengl: fix resource leak when dlsym failed" am: 67a74f49 am: 40d90240

parents 04867f22 40d90240
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -145,6 +145,7 @@ bool initializeAnglePlatform(EGLDisplay dpy) {

    if (!angleGetDisplayPlatform) {
        ALOGE("dlsym lookup of ANGLEGetDisplayPlatform in libEGL_angle failed!");
        dlclose(so);
        return false;
    }

@@ -155,6 +156,7 @@ bool initializeAnglePlatform(EGLDisplay dpy) {
    if (!((angleGetDisplayPlatform)(dpy, g_PlatformMethodNames, g_NumPlatformMethods, nullptr,
                                    &platformMethods))) {
        ALOGE("ANGLEGetDisplayPlatform call failed!");
        dlclose(so);
        return false;
    }
    if (platformMethods) {