Ensure that media key manager is cleaned after executing.

master
Alex Sualdea 1 month ago
parent aed7652dd2
commit 0ffc75d7c3

@ -108,8 +108,10 @@ extern "C" int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/
}
// Import new media keys
pEp::MediaKeyManager media_key_manager(first_session);
media_key_manager.ImportKeys();
{
pEp::MediaKeyManager media_key_manager(first_session);
media_key_manager.ImportKeys();
}
auto rv = _AtlModule.WinMain(nShowCmd);

Loading…
Cancel
Save