[XAudio2] avoid leak + fix voice creation for closest match
[xbmc.git] / xbmc / commons / Exception.cpp
blobb9bd2e5eff27c5c2abc108c4c01b1d671c364732
1 /*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #include "Exception.h"
11 #include "utils/log.h"
13 namespace XbmcCommons
15 Exception::~Exception() = default;
17 void Exception::LogThrowMessage(const char* prefix) const
19 CLog::Log(LOGERROR, "EXCEPTION Thrown ({}) : {}", classname, message);