diff --git a/src/servers/app/drawing/AccelerantHWInterface.cpp b/src/servers/app/drawing/AccelerantHWInterface.cpp index 0450ab9718..57ee1d4329 100644 --- a/src/servers/app/drawing/AccelerantHWInterface.cpp +++ b/src/servers/app/drawing/AccelerantHWInterface.cpp @@ -252,6 +252,8 @@ AccelerantHWInterface::_OpenGraphicsDevice(int deviceNumber) } } + closedir(directory); + return device; }