Skip to content

Commit

Permalink
Destructor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Chad authored and Chad committed Aug 31, 2016
1 parent 1e4f058 commit fd291d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cocos/platform/desktop/CCController-desktop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ ControllerImpl::ControllerImpl()
}

ControllerImpl::~ControllerImpl()
{}

void ControllerImpl::close()
{
for (int i = 0; i < 2; ++i)
{
Expand Down
1 change: 1 addition & 0 deletions cocos/platform/desktop/CCController-desktop.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ class ControllerImpl
~ControllerImpl();
void pollJoysticks();
void init();
void close();
//static void pollJoystick(int id);

private:
Expand Down
1 change: 1 addition & 0 deletions cocos/platform/desktop/CCGLViewImpl-desktop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ GLViewImpl::~GLViewImpl()
CCLOGINFO("deallocing GLViewImpl: %p", this);
GLFWEventHandler::setGLViewImpl(nullptr);
glfwTerminate();
controllerManager.close();
SDL_Quit();
}

Expand Down

0 comments on commit fd291d6

Please sign in to comment.