Build fix. :3

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7372 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Jordan Woyak
2011-03-18 23:10:56 +00:00
parent 7360bd0d88
commit 3eb2196d27
2 changed files with 14 additions and 3 deletions

View File

@ -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)