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
This commit is contained in:
LaurentGom 2010-09-02 11:50:48 +00:00
parent e4725e03dc
commit 316dcbd1f6

View File

@ -79,6 +79,9 @@ std::vector<VideoMode> VideoModeImpl::GetFullscreenModes()
modes.push_back(mode); modes.push_back(mode);
} }
} }
// Free the array of depths
XFree(depths);
} }
} }