rem: pmenu = preProcessMenu(menu, hasWSMenu); PLRelease(menu);
add: if (menu) { pmenu = preProcessMenu(menu, hasWSMenu); PLRelease(menu); } else { pmenu = NULL; }
context: getDefaultMenu(_Panel *panel, int *hasWSMenu){    proplist_t menu, pmenu;    char *menuPath, *gspath;    gspath = wusergnusteppath();    menuPath = wmalloc(strlen(gspath)+128);    /* if there is a localized plmenu for the tongue put it's filename here */    sprintf(menuPath, _("%s/Library/WindowMaker/plmenu"), gspath);    menu = PLGetProplistWithPath(menuPath);    if (!menu) {	wwarning("%s:could not read property list menu", menuPath);	if (strcmp("%s/Library/WindowMaker/plmenu",		   _("%s/Library/WindowMaker/plmenu"))!=0) {	    sprintf(menuPath, "%s/Library/WindowMaker/plmenu", gspath);	    menu = PLGetProplistWithPath(menuPath);	    wwarning("%s:could not read property list menu", menuPath);	}	if (!menu) {	    WMRunAlertPanel(WMWidgetScreen(panel->win), panel->win,			    _("Error"), _("Could not copy default plmenu file "					  "from ~/GNUstep/Library/WindowMaker"),			    _("OK"), NULL, NULL);	    return NULL;	}    }    free(gspath);    free(menuPath);    pmenu = preProcessMenu(menu, hasWSMenu);    PLRelease(menu);    return pmenu;}