Fix a small memleak in window_opacity_get()
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
1c147a6d76
commit
7b2627cbf9
4
window.c
4
window.c
|
@ -143,7 +143,9 @@ window_opacity_get(xcb_window_t win)
|
|||
if(prop_r->value_len)
|
||||
{
|
||||
unsigned int *data = xcb_get_property_value(prop_r);
|
||||
return (double) *data / (double) 0xffffffff;
|
||||
unsigned int value = *data;
|
||||
p_delete(&prop_r);
|
||||
return (double) value / (double) 0xffffffff;
|
||||
}
|
||||
|
||||
bailout:
|
||||
|
|
Loading…
Reference in New Issue