Commit e3ab0a24 authored by Gabríel Arthúr Pétursson's avatar Gabríel Arthúr Pétursson
Browse files

Cleanup winsys dispatch index list on EGL mapping teardown

This fixes a memory leak reported by both Valgrind and LeakSanitizer
when libEGL is dlopen()-ed and dlclose()-ed afterwards.
parent c2f81ca7
......@@ -259,6 +259,8 @@ void __eglMappingTeardown(EGLBoolean doReset)
/* Tear down all hashtables used in this file */
LKDHASH_TEARDOWN(__EGLdisplayInfoHash,
__eglDisplayInfoHash, NULL, NULL, EGL_FALSE);
__glvndWinsysDispatchCleanup();
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment