rem: free(scr->window_menu->entries[MC_MINIATURIZE]->text); free(scr->window_menu->entries[MC_MAXIMIZE]->text); free(scr->window_menu->entries[MC_SHADE]->text);
add: wfree(scr->window_menu->entries[MC_MINIATURIZE]->text); wfree(scr->window_menu->entries[MC_MAXIMIZE]->text); wfree(scr->window_menu->entries[MC_SHADE]->text);
context: OpenWindowMenu(WWindow *wwin, int x, int y, int keyboard){    WMenu *menu;    WScreen *scr = wwin->screen_ptr;    wwin->flags.menu_open_for_me = 1;    if (!scr->window_menu) {	scr->window_menu = createWindowMenu(scr);		/* hack to save some memory allocation/deallocation */	free(scr->window_menu->entries[MC_MINIATURIZE]->text);	free(scr->window_menu->entries[MC_MAXIMIZE]->text);	free(scr->window_menu->entries[MC_SHADE]->text);    } else {	updateWorkspaceMenu(scr->workspace_submenu);    }    menu = scr->window_menu;    if (menu->flags.mapped) {	wMenuUnmap(menu);	if (menu->entries[0]->clientdata==wwin) {	    return;	}    }    updateMenuForWindow(menu, wwin);        x -= menu->frame->core->width/2;    if (x + menu->frame->core->width > wwin->frame_x+wwin->frame->core->width)	x = wwin->frame_x+wwin->frame->core->width - menu->frame->core->width;    if (x < wwin->frame_x) 	x = wwin->frame_x;    if (!wwin->flags.internal_window)	wMenuMapAt(menu, x, y, keyboard);}