mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
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:
parent
e4725e03dc
commit
316dcbd1f6
@ -79,6 +79,9 @@ std::vector<VideoMode> VideoModeImpl::GetFullscreenModes()
|
||||
modes.push_back(mode);
|
||||
}
|
||||
}
|
||||
|
||||
// Free the array of depths
|
||||
XFree(depths);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user