summaryrefslogtreecommitdiff
path: root/plugins/AssocMgr/src/assoclist.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-08-31 12:06:15 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-08-31 12:06:15 +0000
commit75a38acd5c2a1e0abd08d3458d36a452dfd0879a (patch)
tree89425d3569f4e49a97349f61cdaf21c5adb12a3d /plugins/AssocMgr/src/assoclist.cpp
parent29fdf372a2d67fcbd19874e37f9f1a817fa23f60 (diff)
memory allocation problem
git-svn-id: http://svn.miranda-ng.org/main/trunk@17225 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AssocMgr/src/assoclist.cpp')
-rw-r--r--plugins/AssocMgr/src/assoclist.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/AssocMgr/src/assoclist.cpp b/plugins/AssocMgr/src/assoclist.cpp
index d50b40b464..698b13d6fa 100644
--- a/plugins/AssocMgr/src/assoclist.cpp
+++ b/plugins/AssocMgr/src/assoclist.cpp
@@ -1,4 +1,4 @@
-/*
+1027/*
'File Association Manager'-Plugin for Miranda IM
@@ -1025,15 +1025,14 @@ void UninitAssocList(void)
// unregister open-with app
if (fOnlyWhileRunning) {
- wchar_t *pszAppFileName;
// miranda32.exe
- pszAppFileName = MakeAppFileName(TRUE);
+ ptrW pszAppFileName(MakeAppFileName(TRUE));
if (pszAppFileName != NULL)
RemoveRegOpenWith(pszAppFileName);
- pszAppFileName = MakeAppFileName(FALSE);
+
// assocmgr.dll
+ pszAppFileName = MakeAppFileName(FALSE);
if (pszAppFileName != NULL)
RemoveRegOpenWith(pszAppFileName);
- mir_free(pszAppFileName); // does NULL check
}
}