fixed callback not released + unneded env func param
This commit is contained in:
parent
c60b6f71ed
commit
a3d00be3fe
5 changed files with 8 additions and 4 deletions
|
|
@ -741,7 +741,7 @@ wchar_t* Environment::getExeAbsPath(uint32_t *exeAbsPathLength) {
|
|||
return exeAbsPath;
|
||||
}
|
||||
|
||||
std::string Environment::createSettingsPath(SettingsTargetDirectory target, bool create) {
|
||||
std::string Environment::createSettingsPath(SettingsTargetDirectory target) {
|
||||
wchar_t* settingsPath = nullptr;
|
||||
wchar_t settingsFile[] = L"\\settings.ini";
|
||||
uint32_t settingsFileLen = (sizeof(settingsFile) / sizeof(wchar_t)) - 1;
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ class EndpointNewSessionCallback : public IAudioSessionNotification {
|
|||
|
||||
namespace Environment {
|
||||
wchar_t* getExeAbsPath(uint32_t *exeAbsPathLength);
|
||||
std::string createSettingsPath(SettingsTargetDirectory target, bool create);
|
||||
std::string createSettingsPath(SettingsTargetDirectory target);
|
||||
void populateSystemValues();
|
||||
void openControlPanel();
|
||||
ProcessedNativeEvent processTopLevelWindowMessage(void* msg);
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
void setConfigDirToDefaults() {
|
||||
#define tryFileDir(dir, create) do { \
|
||||
OverseerHandler::settingsPath = Environment::createSettingsPath(dir, create); \
|
||||
OverseerHandler::settingsPath = Environment::createSettingsPath(dir); \
|
||||
set = ini::UserSettings::createSettings(OverseerHandler::settingsPath.c_str(), create); \
|
||||
if(set) { \
|
||||
return; \
|
||||
|
|
|
|||
|
|
@ -85,3 +85,7 @@ void SessionHandler::reviseSessionShowing(SessionState state) {
|
|||
}
|
||||
}
|
||||
|
||||
SessionHandler::~SessionHandler() {
|
||||
session->removeStateCallback(ssc);
|
||||
ssc->Release();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class SessionHandler {
|
|||
void setName(std::wstring newName);
|
||||
void reviseSessionShowing(SessionState state);
|
||||
SessionVolumeInfo* getVolumeInfo();
|
||||
|
||||
~SessionHandler();
|
||||
private:
|
||||
SessionVolumeInfo svi;
|
||||
EndpointHandler* eph;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue