From 316dcbd1f6481d008e092d99a83fe3b86c55fd23 Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Thu, 2 Sep 2010 11:50:48 +0000 Subject: [PATCH] Fixed a memory leak in the Linux implementation of VideoMode::GetDesktopMode git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1562 4e206d99-4929-0410-ac5d-dfc041789085 --- src/SFML/Window/Linux/VideoModeImpl.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); } }