summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/modern_framesmenu.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-07 08:29:51 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-07 08:29:51 +0000
commit3e102800404c38bc615cc06fd7117f2b4daeb6c5 (patch)
treea674038efde2f8060769fa6796cd1b28f96139ff /plugins/Clist_modern/modern_framesmenu.cpp
parent6ba9eb829a0b95bf9e6c6bdc9ed37d1d3947b87b (diff)
removed mir_free_and_nil for local buffers
git-svn-id: http://svn.miranda-ng.org/main/trunk@809 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/modern_framesmenu.cpp')
-rw-r--r--plugins/Clist_modern/modern_framesmenu.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/Clist_modern/modern_framesmenu.cpp b/plugins/Clist_modern/modern_framesmenu.cpp
index 27ec830d9f..9fc07f5e07 100644
--- a/plugins/Clist_modern/modern_framesmenu.cpp
+++ b/plugins/Clist_modern/modern_framesmenu.cpp
@@ -47,13 +47,11 @@ static INT_PTR AddContextFrameMenuItem(WPARAM wParam,LPARAM lParam)
static INT_PTR RemoveContextFrameMenuItem(WPARAM wParam,LPARAM lParam)
{
- lpFrameMenuExecParam fmep;
- fmep = (lpFrameMenuExecParam)CallService(MO_MENUITEMGETOWNERDATA,wParam,lParam);
+ lpFrameMenuExecParam fmep = (lpFrameMenuExecParam)CallService(MO_MENUITEMGETOWNERDATA,wParam,lParam);
if (fmep != NULL){
- if (fmep->szServiceName != NULL){
- mir_free_and_nill(fmep->szServiceName);
- };
- mir_free_and_nill(fmep);
+ if (fmep->szServiceName != NULL)
+ mir_free(fmep->szServiceName);
+ mir_free(fmep);
}
if (lParam != 1)