expo: fix vram leak

This commit is contained in:
Vaxry 2024-04-03 21:21:55 +01:00
parent 7c187cdd27
commit f76fb09ff9
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,8 @@ static void removeOverview(void*) {
}
COverview::~COverview() {
g_pHyprRenderer->makeEGLCurrent();
images.clear(); // otherwise we get a vram leak
g_pHookSystem->unhook(mouseButtonHook);
g_pHookSystem->unhook(mouseMoveHook);
g_pInputManager->unsetCursorImage();