mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -06:00
Fixed a few memory leaks. Made Init and Shutdown functions for some core systems.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5064 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -41,11 +41,22 @@
|
||||
#include "Setup.h"
|
||||
|
||||
// Create the plugin manager class
|
||||
CPluginManager CPluginManager::m_Instance;
|
||||
CPluginManager* CPluginManager::m_Instance;
|
||||
|
||||
// The Plugin Manager Class
|
||||
// ------------
|
||||
|
||||
void CPluginManager::Init()
|
||||
{
|
||||
m_Instance = new CPluginManager;
|
||||
}
|
||||
|
||||
void CPluginManager::Shutdown()
|
||||
{
|
||||
delete m_Instance;
|
||||
m_Instance = NULL;
|
||||
}
|
||||
|
||||
// The plugin manager is some sort of singleton that runs during Dolphin's entire lifespan.
|
||||
CPluginManager::CPluginManager()
|
||||
{
|
||||
|
Reference in New Issue
Block a user