The data returned by XGetWindowProperty must be freed by the caller;
this didn't happen so there is a small leak in this function. Simple
enough to fix.
props = (void *)prop_return;
for (i = 0; i < nitems; i++) {
if (props[i] == net_wm_icon) {
props = (void *)prop_return;
for (i = 0; i < nitems; i++) {
if (props[i] == net_wm_icon) {
} while (nitems > 0 && bytes_after > 0);
return 0;
} while (nitems > 0 && bytes_after > 0);
return 0;