diff --git a/src/SFML/Window/Linux/VideoModeImpl.cpp b/src/SFML/Window/Linux/VideoModeImpl.cpp index 32b5ad36..a5f4fff2 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); } }