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

Commit 67a74f49 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "opengl: fix resource leak when dlsym failed"

parents bc9f2a6c 3d0d3e99
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) {