diff --git a/src/SFML/Window/Linux/VideoModeImpl.cpp b/src/SFML/Window/Linux/VideoModeImpl.cpp index 32b5ad36d..a5f4fff2e 100644 --- a/src/SFML/Window/Linux/VideoModeImpl.cpp +++ b/src/SFML/Window/Linux/VideoModeImpl.cpp @@ -79,6 +79,9 @@ std::vector VideoModeImpl::GetFullscreenModes() modes.push_back(mode); } } + + // Free the array of depths + XFree(depths); } }