diff options
Diffstat (limited to 'plugins/Clist_modern/modern_framesmenu.cpp')
-rw-r--r-- | plugins/Clist_modern/modern_framesmenu.cpp | 10 |
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)
|