Permalink
Browse files

[WIN] Unregister device notifications when exiting

  • Loading branch information...
1 parent 75728a0 commit 9395019833eb7844a3674954c2d973e61f73d86f @CrystalP committed Mar 14, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 xbmc/windowing/windows/WinEventsWin32.cpp
@@ -383,6 +383,8 @@ LRESULT CALLBACK CWinEventsWin32::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, L
case WM_CLOSE:
case WM_QUIT:
case WM_DESTROY:
+ if (hDeviceNotify)
+ UnregisterDeviceNotification(hDeviceNotify);
newEvent.type = XBMC_QUIT;
m_pEventFunc(newEvent);
break;

0 comments on commit 9395019

Please sign in to comment.