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

Commit d07b2188 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 am: b44bbf6e

parents 089618b7 b44bbf6e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -152,6 +152,7 @@ bool initializeAnglePlatform(EGLDisplay dpy) {

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

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