mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Build fix. :3
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7372 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -392,8 +392,17 @@ void Shutdown()
|
||||
{
|
||||
Flush();
|
||||
|
||||
g_current_buffer.clear();
|
||||
g_undo_load_buffer.clear();
|
||||
// swapping with an empty vector, rather than clear()ing
|
||||
// this gives a better guarantee to free the allocated memory right NOW
|
||||
{
|
||||
std::vector<u8> tmp;
|
||||
g_current_buffer.swap(tmp);
|
||||
}
|
||||
|
||||
{
|
||||
std::vector<u8> tmp;
|
||||
g_undo_load_buffer.swap(tmp);
|
||||
}
|
||||
}
|
||||
|
||||
static std::string MakeStateFilename(int number)
|
||||
|
Reference in New Issue
Block a user