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);
|
modes.push_back(mode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Free the array of depths
|
||||||
|
XFree(depths);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user