When running some X windows, in my case xev, xcb_icccm_get_wm_class_reply will fail, but howm will still call a clean up function to clean it up which causes howm to crash. For some reason, the function call also doesn't reseat an xcb_generic_err_t in my tests so I can't pinpoint what causes this either.
Checking the icccm source though, it seems simply not cleaning up the structure should suffice to fix the problem as the error occurs due to the wipe function calling free here. If the get_wm_class_reply function fails, free is automatically called anyway so there is no harm in leaving the reply struct dirty.
When running some X windows, in my case xev,
xcb_icccm_get_wm_class_reply
will fail, but howm will still call a clean up function to clean it up which causes howm to crash. For some reason, the function call also doesn't reseat anxcb_generic_err_t
in my tests so I can't pinpoint what causes this either.Checking the icccm source though, it seems simply not cleaning up the structure should suffice to fix the problem as the error occurs due to the wipe function calling free here. If the
get_wm_class_reply
function fails, free is automatically called anyway so there is no harm in leaving the reply struct dirty.