Skip to content

Commit

Permalink
expo: fix vram leak
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Apr 3, 2024
1 parent 7c187cd commit f76fb09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hyprexpo/overview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f76fb09

Please sign in to comment.