--- ./hw/xwin/save_winmultiwindowwm.c 2006-12-18 15:15:27.000000000 +0000 +++ ./hw/xwin/winmultiwindowwm.c 2006-12-18 14:06:25.000000000 +0000 @@ -445,10 +447,7 @@ } else { - XmbTextPropertyToTextList (pDisplay, &xtpName, &ppList, &nNum); - - /* */ - if (nNum && ppList && *ppList) + if (XmbTextPropertyToTextList (pDisplay, &xtpName, &ppList, &nNum) >= Success && nNum > 0 && *ppList) { *ppName = strdup (*ppList); XFreeStringList (ppList);