mirror of
https://github.com/vale981/spectrwm
synced 2025-03-05 18:01:37 -05:00
fix crash in get_win_name.
Only wipe the reply if the reply was successful.
This commit is contained in:
parent
fb93824e11
commit
9b6948f710
1 changed files with 2 additions and 2 deletions
|
@ -3786,10 +3786,10 @@ get_win_name(xcb_window_t win)
|
||||||
}
|
}
|
||||||
memcpy(name, r.name, r.name_len);
|
memcpy(name, r.name, r.name_len);
|
||||||
name[r.name_len] = '\0';
|
name[r.name_len] = '\0';
|
||||||
|
|
||||||
|
xcb_get_text_property_reply_wipe(&r);
|
||||||
}
|
}
|
||||||
|
|
||||||
xcb_get_text_property_reply_wipe(&r);
|
|
||||||
|
|
||||||
return (name);
|
return (name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue