diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-01-22 19:51:34 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-01-22 19:51:34 +0000 |
commit | 5e1548f7902322e8efe75c390c64c6b958c43b2d (patch) | |
tree | 65ab9d39bbf13597c6aa6d3a5348cd7752ce32dc /plugins/Watrack_MPD/src/init.cpp | |
parent | 5a168e085110bb7458b70e8b9a0075f161b40166 (diff) |
WATrack_MPD:
- Fixed memory leaks
git-svn-id: http://svn.miranda-ng.org/main/trunk@11894 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Watrack_MPD/src/init.cpp')
-rwxr-xr-x | plugins/Watrack_MPD/src/init.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/Watrack_MPD/src/init.cpp b/plugins/Watrack_MPD/src/init.cpp index 3a1b47de37..2d50447cdd 100755 --- a/plugins/Watrack_MPD/src/init.cpp +++ b/plugins/Watrack_MPD/src/init.cpp @@ -51,8 +51,6 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda void InitVars()
{
gbPort = db_get_w(NULL, szModuleName, "Port", 6600);
- gbPassword = (TCHAR*)malloc(64*sizeof(TCHAR));
- gbHost = (TCHAR*)malloc(128*sizeof(TCHAR));
gbHost = UniGetContactSettingUtf(NULL, szModuleName, "Server", _T("127.0.0.1"));
gbPassword = UniGetContactSettingUtf(NULL, szModuleName, "Password", _T(""));
}
@@ -84,7 +82,7 @@ extern "C" __declspec(dllexport) int Load() extern "C" __declspec(dllexport) int Unload(void)
{
- free(gbHost);
- free(gbPassword);
+ mir_free(gbHost);
+ mir_free(gbPassword);
return 0;
}
|