summaryrefslogtreecommitdiffstats
path: root/src/egl/main
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2017-09-26 13:13:39 +0100
committerEric Engestrom <[email protected]>2017-10-12 14:38:55 +0100
commit9690759d0ccadd9527dee892eedc2f9d4baadf59 (patch)
tree94a10b8762a62bbf3585d30bd597d85295e02e22 /src/egl/main
parent6049fa454e4752a527cb8e13779082b27adcfb97 (diff)
egl: replace _egl_driver->Unload() callback with a simple free()
Bonus: fixes a memleak on haiku when unloading the driver Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/egl/main')
-rw-r--r--src/egl/main/egldriver.c4
-rw-r--r--src/egl/main/egldriver.h7
2 files changed, 1 insertions, 10 deletions
diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c
index 1ede95ea6f4..5d5b7daa418 100644
--- a/src/egl/main/egldriver.c
+++ b/src/egl/main/egldriver.c
@@ -120,8 +120,6 @@ void
_eglUnloadDrivers(void)
{
/* this is called at atexit time */
- if (_eglDriver && _eglDriver->Unload)
- _eglDriver->Unload(_eglDriver);
-
+ free(_eglDriver);
_eglDriver = NULL;
}
diff --git a/src/egl/main/egldriver.h b/src/egl/main/egldriver.h
index a8b0cab2b1a..fc27f1ffa3c 100644
--- a/src/egl/main/egldriver.h
+++ b/src/egl/main/egldriver.h
@@ -80,13 +80,6 @@ struct _egl_driver
{
const char *Name; /**< name of this driver */
- /**
- * Release the driver resource.
- *
- * It is called before dlclose().
- */
- void (*Unload)(_EGLDriver *drv);
-
_EGLAPI API; /**< EGL API dispatch table */
};