add: if (!WDWindowAttributes || !WDWindowAttributes->dictionary) return NULL;
context: getWindowMakerIconImage(WMScreen *scr){    WMPropList *dict, *key, *option, *value=NULL;    WMPixmap *pix=NULL;    char *path;    WMPLSetCaseSensitive(True);    key = WMCreatePLString("Logo.WMPanel");    option = WMCreatePLString("Icon");    dict = WMGetFromPLDictionary(WDWindowAttributes->dictionary, key);    if (dict) {        value = WMGetFromPLDictionary(dict, option);    }    WMReleasePropList(key);    WMReleasePropList(option);    WMPLSetCaseSensitive(False);    if (value && WMIsPLString(value)) {        path = FindImage(wPreferences.icon_path, WMGetFromPLString(value));        if (path) {            RColor gray;            gray.red = 0xae;  gray.green = 0xaa;            gray.blue = 0xae; gray.alpha = 0;            pix = WMCreateBlendedPixmapFromFile(scr, path, &gray);            wfree(path);        }    }    return pix;}