summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-08-17 16:38:47 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-17 18:05:35 +0200
commita50a9d67ee515a6c7173f5b6ecde424f6a31db14 (patch)
treea194f1c66bddc066e3ea70cb52115a0647d589c0
parent9ddd540ca98b1278feb31348f0aee8e0b2d88ee2 (diff)
downloadserenity-a50a9d67ee515a6c7173f5b6ecde424f6a31db14.zip
WindowServer: Close the framebuffer fd in ~Screen()
-rw-r--r--Services/WindowServer/Screen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Services/WindowServer/Screen.cpp b/Services/WindowServer/Screen.cpp
index 4e386f9b81..9071ec6115 100644
--- a/Services/WindowServer/Screen.cpp
+++ b/Services/WindowServer/Screen.cpp
@@ -66,6 +66,7 @@ Screen::Screen(unsigned desired_width, unsigned desired_height)
Screen::~Screen()
{
+ close(m_framebuffer_fd);
}
bool Screen::set_resolution(int width, int height)